diff --git a/flow-typed/CoinSwap.js b/flow-typed/CoinSwap.js new file mode 100644 index 000000000..c8311d83f --- /dev/null +++ b/flow-typed/CoinSwap.js @@ -0,0 +1,10 @@ +declare type CoinSwapState = { + btcAddresses: Array +}; + +declare type CoinSwapAction = { + type: string, + data: { + btcAddress: string, + }, +}; diff --git a/static/app-strings.json b/static/app-strings.json index 1a6631a2e..0f910c7d6 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1729,6 +1729,37 @@ "lbry.tv is being retired in favor of %odysee% and new sign ups are disabled. Sign up on %odysee% instead": "lbry.tv is being retired in favor of %odysee% and new sign ups are disabled. Sign up on %odysee% instead", "lbry.tv is being retired in favor of %odysee%": "lbry.tv is being retired in favor of %odysee%", "You will have to switch to the %desktop_app% or %odysee% in the near future. Your existing login details will work on %odysee% and all of your %credits% and other settings will be there.": "You will have to switch to the %desktop_app% or %odysee% in the near future. Your existing login details will work on %odysee% and all of your %credits% and other settings will be there.", + "Swap": "Swap", + "Swap Bitcoin": "Swap Bitcoin", + "Bitcoin": "Bitcoin", + "Credits": "Credits", + "Start Swap": "Start Swap", + "To": "To", + "Receiving": "Receiving", + "Send bitcoin to the address provided and you will be sent an equivalent amount of Credits.": "Send bitcoin to the address provided and you will be sent an equivalent amount of Credits.", + "Swap Bitcoin for %lbc%": "Swap Bitcoin for %lbc%", + "Processing...": "Processing...", + "View Past Swaps": "View Past Swaps", + "Remove address": "Remove address", + "Waiting for BTC": "Waiting for BTC", + "Waiting to receive your bitcoin.": "Waiting to receive your bitcoin.", + "Sending LBC": "Sending LBC", + "Bitcoin received. Sending your LBC.": "Bitcoin received. Sending your LBC.", + "Completed": "Completed", + "LBC sent. You should see it in your wallet.": "LBC sent. You should see it in your wallet.", + "Failed": "Failed", + "An error occurred on the previous swap.": "An error occurred on the previous swap.", + "Failed to initiate swap.": "Failed to initiate swap.", + "Failed to query swap status.": "Failed to query swap status.", + "The system is currently down. Come back later.": "The system is currently down. Come back later.", + "Unable to obtain exchange rate. Try again later.": "Unable to obtain exchange rate. Try again later.", + "The BTC amount needs to be higher": "The BTC amount needs to be higher", + "The BTC amount is too high": "The BTC amount is too high", + "Confirm Address Removal": "Confirm Address Removal", + "Remove BTC Swap Address": "Remove BTC Swap Address", + "This process cannot be reversed.": "This process cannot be reversed.", + "Remove %btc_address%?": "Remove %btc_address%?", + "View transaction": "View transaction", "We apologize for this inconvenience, but have added this additional step to prevent abuse. Users on VPN or shared connections will continue to see this message and are not eligible for Rewards.": "We apologize for this inconvenience, but have added this additional step to prevent abuse. Users on VPN or shared connections will continue to see this message and are not eligible for Rewards.", "Help LBRY Save Crypto": "Help LBRY Save Crypto", "The US government is attempting to destroy the cryptocurrency industry. Can you help?": "The US government is attempting to destroy the cryptocurrency industry. Can you help?", diff --git a/ui/component/common/icon-custom.jsx b/ui/component/common/icon-custom.jsx index 1aa31ffde..50ed01ca5 100644 --- a/ui/component/common/icon-custom.jsx +++ b/ui/component/common/icon-custom.jsx @@ -221,6 +221,12 @@ export const icons = { ), + [ICONS.COIN_SWAP]: buildIcon( + + + + ), + [ICONS.LIBRARY]: buildIcon(), [ICONS.EDIT]: buildIcon( diff --git a/ui/component/walletBalance/view.jsx b/ui/component/walletBalance/view.jsx index 3122a7087..6e270463d 100644 --- a/ui/component/walletBalance/view.jsx +++ b/ui/component/walletBalance/view.jsx @@ -155,7 +155,7 @@ const WalletBalance = (props: Props) => {