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

Commit 6b8f39c

Browse files
committed
Use max button component in pay-bitcoin view
1 parent 5086c47 commit 6b8f39c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/view/pay-bitcoin.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import MainContent from '../component/main-content';
77
import { InputField, AmountInputField } from '../component/field';
88
import { Header, Title } from '../component/header';
99
import {
10-
Button,
10+
MaxButton,
1111
CancelButton,
1212
BackButton,
1313
PillButton,
@@ -27,13 +27,8 @@ const styles = StyleSheet.create({
2727
color: color.blackText,
2828
},
2929
maxBtn: {
30-
borderStyle: 'solid',
31-
borderWidth: 1,
32-
minHeight: 30,
33-
marginBottom: 10,
34-
},
35-
maxTxt: {
36-
paddingTop: 0,
30+
marginTop: 10,
31+
marginBottom: 20,
3732
},
3833
nextBtn: {
3934
marginTop: 20,
@@ -68,9 +63,11 @@ const PayBitcoinView = ({ store, nav, payment }) => (
6863
{store.unitFiatLabel}
6964
</BalanceLabelUnit>
7065
</BalanceLabel>
71-
<Button style={styles.maxBtn} onPress={() => payment.setMax()}>
72-
<FormText style={styles.maxTxt}>MAX</FormText>
73-
</Button>
66+
<MaxButton
67+
style={styles.maxBtn}
68+
active={store.payment.sendAll}
69+
onPress={() => payment.setMax()}
70+
/>
7471
<InputField
7572
placeholder="Bitcoin Address"
7673
value={store.payment.address}

0 commit comments

Comments
 (0)