Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 89a2c0b

Browse files
committed
Update home screen label
1 parent 03fce61 commit 89a2c0b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/view/home.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const HomeView = ({
4545
transaction,
4646
nav,
4747
}) => {
48-
const { balanceLabel, channelBalanceLabel, unitLabel } = store;
48+
const { depositLabel, channelBalanceLabel, unitLabel } = store;
4949
return (
5050
<Background image="purple-gradient-bg">
5151
<HomeHeader
@@ -56,7 +56,7 @@ const HomeView = ({
5656
<QrCodeSeparator goDeposit={() => nav.goDeposit()} />
5757
<MainContent style={styles.content}>
5858
<BalanceDisplay
59-
balanceLabel={balanceLabel}
59+
depositLabel={depositLabel}
6060
channelBalanceLabel={channelBalanceLabel}
6161
unitLabel={unitLabel}
6262
toggleDisplayFiat={() => wallet.toggleDisplayFiat()}
@@ -99,7 +99,7 @@ const balanceStyles = StyleSheet.create({
9999
});
100100

101101
const BalanceDisplay = ({
102-
balanceLabel,
102+
depositLabel,
103103
channelBalanceLabel,
104104
unitLabel,
105105
toggleDisplayFiat,
@@ -111,13 +111,13 @@ const BalanceDisplay = ({
111111
<BalanceLabelUnit>{unitLabel}</BalanceLabelUnit>
112112
</BalanceLabel>
113113
<H4Text style={balanceStyles.smallLabel}>Pending Deposit</H4Text>
114-
<SmallBalanceLabel unit={unitLabel}>{balanceLabel}</SmallBalanceLabel>
114+
<SmallBalanceLabel unit={unitLabel}>{depositLabel}</SmallBalanceLabel>
115115
</Button>
116116
</View>
117117
);
118118

119119
BalanceDisplay.propTypes = {
120-
balanceLabel: PropTypes.string.isRequired,
120+
depositLabel: PropTypes.string.isRequired,
121121
channelBalanceLabel: PropTypes.string.isRequired,
122122
unitLabel: PropTypes.string,
123123
toggleDisplayFiat: PropTypes.func.isRequired,

stories/screen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ storiesOf('Screens', module)
158158
// set some dummy data
159159
store.walletAddress = 'ra2XT898gWTp9q2DwMgtwMJsUEh3oMeS4K';
160160
store.balanceSatoshis = 798765432;
161+
store.pendingBalanceSatoshis = 100000000;
161162
store.channelBalanceSatoshis = 59876000;
162163
store.settings.exchangeRate.usd = 0.00016341;
163164
store.settings.exchangeRate.eur = 0.0001896;

0 commit comments

Comments
 (0)