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.
* Use new lnproxy API
- Use POST instead of GET, so create and send a body parameter
- Path is /spec/ instead of /api/, and list of relays from lnproxy will contain /spec already, so path parameter for ApiClient.post() is an empty string
* add lnproxy sync workflow
* Use new lnproxy JSON structure
* Remove virtualenv
doing this so that the “scripts” subfolder in .github/workflows can be added
* Move workflow script to subfolder
* Add translation support
Locale strings not added yet
* Simplify coordinator updates, automatic migrations and collect statics (#583)
* Delete commited proto files
* Run sync workflow weekly instead of hourly
* Tweak display name for relays
* Update sync script to be append-only
* Use new naming convention for relays
* Fix bitcoinNetwork hydration
* PR Feedback
- Change hook deps from settings.network to settings
- routing_msat param updates for lnproxy API
* Actually set host in settings
* Updated parsing of LnProxy response
---------
Co-authored-by: +shyfire131 <shyfire131@shyfire131.net>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>