* Add SVG icons for map pins
* Add federation basis and new coordinator form (#793)
* Add new coordinator entry issue form
* Add Federation basis
* Fix eslint errors from F2F and fix languages
* Redo eslint @typescript-eslint/strict-boolean-expressions
* Robot Page working
* Contexts Working
* Garage Working
* CurrentOrder working
* Federation model working
---------
Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
Fixing the type handlePremiumChange function to handle the discount to the right type (React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>)
Using the correct type of handlePremiumChange function, then deconstructing the "value" var from the event.target
Using Number(value) in declaration of "newPremium", instead of using multiplication with number and string
To not affect another methods using "premium" var, I used isNaN func to make a check and set the initial value of "premium" var to zero (if is NaN) or newPremium (when valid number is entered)
The fix in the bug is the line "premium: isNaN(newPremium) || value === '' ? '' : premium," in setMaker. That makes the "premium" var to be set to zero when the input is empty or not a number, allowing the user to input the "-" (minus sign) and not entering 0 as before.
Created new state var amountRangeEnabled to control the new switch when advanced options is enabled.
Created memo var makerHasAmountRange to control boolean state of amount exact/range switch using maker.advancedOptions and amountRangeEnabled.
Used makerHasAmountRange instead of maker.advancedOptions when testing if maker is using amount range or exact amount (changeds places: handleCreateOrder, disableSubmit, amountToString in SummaryText, and in the Amount fields).
Change the default value of amountRageEnabled
Changed the default value of state var "amountRageEnabled" to true, and removed unnecessary use of the method "setAmountRangeEnabled" when chaging between advanced and default options.
Fix style of switch Exact/Range Amount
Fixing the style of the div of the "Exact/Range Amount" Switch removing the unecessary "width" and "height" props and adding a negative marginTop to reduce the gap between buy/sell buttons and the amount input commented in the PR, and added a padding bottom to the label of the amount (exact) to not hide the switch.
Inverting the position of the icon to match the style of the "Advanced Options" Switch.
Fixing the title from tooltip of the switch (the order of the titles was inversed and the text of the Exact Amount was wrong).
Define style of Exact/Range Amount Switch
Last change in the style of the new Exact/Range Amount Switch, following the review recommendations.
* Improve clarity of swap orders
* Add descriptive send/receive amounts for swaps on Maker Page
* Add descriptive send/receive amounts for swaps on OrderDetails
* Collect new phrases
* Small fixes
* Refactor fetchRobot
* Add appcontext
* Robot recovery fixes
* Add usecontext on maker and settings forms
* Add usecontext to booktable
* Add useContext to order page and main dialogs
* Small fixes
* Add better fiat/swap UI switches
* Add swap controls to booktable
* Enhance order details and take button for swaps
* Add swap specific order summary strings
* Add specific bond commitment descriptions for swap orders
* Fix cosmetics