Skip to content

Commit 4ab4dec

Browse files
update staking label #2617
1 parent c5eb13e commit 4ab4dec

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

app/modules/Account/elements/HeaderBlocks.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class HeaderBlocks extends React.Component {
190190
<TouchableDebounce
191191
onPress={() => this.accountStaking(currencyCode)}
192192
hitSlop={HIT_SLOP}
193-
disabled={withoutDescription || !canBeStaked}
193+
disabled={!canBeStaked}
194194
>
195195
{diffAvailable &&
196196
<Text style={[styles.availableText, { color: colors.common.text3, marginBottom: GRID_SIZE / 3 }]}>
@@ -201,6 +201,11 @@ class HeaderBlocks extends React.Component {
201201
{`${strings(balanceStakedTitle)}: ${finalIsBalanceVisible ? balanceStakedPretty + ' ' + currencySymbol : ' ****'}`}
202202
</Text>
203203
}
204+
{!diffAvailable && withoutDescription ?
205+
<Text style={styles.availableText}>
206+
{strings('account.staking')}
207+
</Text>
208+
: null}
204209
</TouchableDebounce>
205210
{
206211
canBeStaked &&
@@ -411,16 +416,21 @@ class HeaderBlocks extends React.Component {
411416
<View style={styles.stakingValue}>
412417
<Text style={{ ...styles.currencyName, color: colors.common.text1 }}>{currencySymbol}</Text>
413418
{availableStaking &&
414-
<PercentView
415-
value={this.props.stakingCoins[currencyCode]}
416-
staking
417-
/>
419+
<TouchableDebounce
420+
hitSlop={{ top: 15, right: 15, bottom: 7, left: 10 }}
421+
onPress={() => this.accountStaking(currencyCode)}
422+
>
423+
<PercentView
424+
value={this.props.stakingCoins[currencyCode]}
425+
staking
426+
/>
427+
</TouchableDebounce>
418428
}
419429
</View>
420430
<TouchableDebounce
421431
style={styles.topContent__middle}
422432
onPress={() => this.handleBackDropModal(shownAddress, forceLink, currencyCode, currencyName)}
423-
hitSlop={HIT_SLOP}
433+
hitSlop={{ top: 6, right: 15, bottom: 15, left: 15 }}
424434
onLongPress={() => this.handleBtcAddressCopy(shownAddress)}
425435
delayLongPress={500}
426436
>

0 commit comments

Comments
 (0)