From 5d31dc536cb8dcf8f4665f3ad466dd8790d5a3c1 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 10 Mar 2021 14:06:59 +0800 Subject: [PATCH] ReceiveLBC: switch from Modal to Page --- ui/component/router/view.jsx | 2 ++ ui/component/walletAddress/view.jsx | 5 ++--- ui/component/walletBalance/view.jsx | 9 ++------- ui/component/yrblWalletEmpty/index.js | 7 ++----- ui/component/yrblWalletEmpty/view.jsx | 6 ++---- ui/constants/modal_types.js | 1 - ui/constants/pages.js | 1 + ui/modal/modalRouter/view.jsx | 3 --- ui/modal/modalWalletReceive/index.js | 14 -------------- ui/modal/modalWalletReceive/view.jsx | 16 ---------------- ui/page/receive/index.js | 6 ++++++ ui/page/receive/view.jsx | 26 ++++++++++++++++++++++++++ 12 files changed, 43 insertions(+), 53 deletions(-) delete mode 100644 ui/modal/modalWalletReceive/index.js delete mode 100644 ui/modal/modalWalletReceive/view.jsx create mode 100644 ui/page/receive/index.js create mode 100644 ui/page/receive/view.jsx diff --git a/ui/component/router/view.jsx b/ui/component/router/view.jsx index 9269b72e9..2efd9d403 100644 --- a/ui/component/router/view.jsx +++ b/ui/component/router/view.jsx @@ -46,6 +46,7 @@ import CheckoutPage from 'page/checkoutPage'; import ChannelNew from 'page/channelNew'; import RepostNew from 'page/repost'; import BuyPage from 'page/buy'; +import ReceivePage from 'page/receive'; import NotificationsPage from 'page/notifications'; import SignInWalletPasswordPage from 'page/signInWalletPassword'; import YoutubeSyncPage from 'page/youtubeSync'; @@ -281,6 +282,7 @@ function AppRouter(props: Props) { + diff --git a/ui/component/walletAddress/view.jsx b/ui/component/walletAddress/view.jsx index 8f6ab8576..4d0e27400 100644 --- a/ui/component/walletAddress/view.jsx +++ b/ui/component/walletAddress/view.jsx @@ -4,10 +4,9 @@ import Button from 'component/button'; import CopyableText from 'component/copyableText'; import QRCode from 'component/common/qr-code'; import Card from 'component/common/card'; -import LbcSymbol from 'component/common/lbc-symbol'; type Props = { - checkAddressIsMine: string => void, + checkAddressIsMine: (string) => void, receiveAddress: string, getNewAddress: () => void, gettingNewAddress: boolean, @@ -49,7 +48,7 @@ class WalletAddress extends React.PureComponent { return ( } + title={__('Receive Credits')} subtitle={__('Use this address to receive LBRY Credits.')} actions={ diff --git a/ui/component/walletBalance/view.jsx b/ui/component/walletBalance/view.jsx index 74829a840..eec9d2864 100644 --- a/ui/component/walletBalance/view.jsx +++ b/ui/component/walletBalance/view.jsx @@ -17,7 +17,7 @@ type Props = { claimsBalance: number, supportsBalance: number, tipsBalance: number, - doOpenModal: string => void, + doOpenModal: (string) => void, hasSynced: boolean, doFetchUtxoCounts: () => void, doUtxoConsolidate: () => void, @@ -153,12 +153,7 @@ const WalletBalance = (props: Props) => { {/* @endif */}