From 9609f423df92c4255b966544f34cb859f236df20 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Sun, 15 Dec 2019 11:41:27 +0100 Subject: [PATCH] use coins icon instead of 'Bal:' text --- src/component/channelSelector/view.js | 11 ++++++----- src/component/walletSend/view.js | 12 +++++++----- src/page/channelCreator/view.js | 11 ++++++----- src/page/file/view.js | 11 ++++++----- src/page/publish/view.js | 11 ++++++----- src/styles/channelCreator.js | 7 ++++++- src/styles/channelSelector.js | 7 ++++++- src/styles/filePage.js | 7 ++++++- src/styles/publish.js | 7 ++++++- src/styles/wallet.js | 7 ++++++- 10 files changed, 61 insertions(+), 30 deletions(-) diff --git a/src/component/channelSelector/view.js b/src/component/channelSelector/view.js index 1f109ac..ccce9f7 100644 --- a/src/component/channelSelector/view.js +++ b/src/component/channelSelector/view.js @@ -252,11 +252,12 @@ export default class ChannelSelector extends React.PureComponent { underlineColorAndroid={Colors.NextLbryGreen} /> LBC - - {this.state.creditsInputFocused - ? __('Bal: %balance%', { balance: formatCredits(parseFloat(balance), 1, true) }) - : ''} - + + {this.state.creditsInputFocused && } + {this.state.creditsInputFocused && ( + {formatCredits(parseFloat(balance), 1, true)} + )} + {__('This LBC remains yours. It is a deposit to reserve the name and can be undone at any time.')} diff --git a/src/component/walletSend/view.js b/src/component/walletSend/view.js index 17aae7d..a4036cf 100644 --- a/src/component/walletSend/view.js +++ b/src/component/walletSend/view.js @@ -4,6 +4,7 @@ import { formatCredits, regexAddress } from 'lbry-redux'; import { Alert, Clipboard, TextInput, Text, View } from 'react-native'; import Button from 'component/button'; import Colors from 'styles/colors'; +import Icon from 'react-native-vector-icons/FontAwesome5'; import walletStyle from 'styles/wallet'; type DraftTransaction = { @@ -128,11 +129,12 @@ class WalletSend extends React.PureComponent { style={[walletStyle.input, walletStyle.amountInput]} /> LBC - - {this.state.creditsInputFocused - ? __('Bal: %balance%', { balance: formatCredits(parseFloat(balance), 1, true) }) - : ''} - + + {this.state.creditsInputFocused && } + {this.state.creditsInputFocused && ( + {formatCredits(parseFloat(balance), 1, true)} + )} +