@@ -6,71 +6,69 @@ import Background from '../component/background';
66import MainContent from '../component/main-content' ;
77import { NamedField , AmountInputField } from '../component/field' ;
88import { Header , Title } from '../component/header' ;
9- import { CancelButton , BackButton , SmallGlasButton } from '../component/button' ;
9+ import { CancelButton , Button , SmallGlasButton } from '../component/button' ;
1010import Card from '../component/card' ;
1111import LightningBoltIcon from '../asset/icon/lightning-bolt' ;
12- import { FormStretcher } from '../component/form' ;
12+ import { FormStretcher , FormSubText } from '../component/form' ;
1313import { BalanceLabel , BalanceLabelUnit } from '../component/label' ;
1414import { color } from '../component/style' ;
1515
1616const styles = StyleSheet . create ( {
1717 balance : {
18- marginBottom : 10 ,
19- } ,
20- numeral : {
21- color : color . blackText ,
18+ marginTop : 15 ,
2219 } ,
2320 unit : {
2421 color : color . blackText ,
2522 } ,
26- totalLbl : {
27- marginTop : 5 ,
28- } ,
29- note : {
30- marginTop : 5 ,
31- borderBottomWidth : 0 ,
23+ form : {
24+ paddingTop : 10 ,
25+ paddingBottom : 10 ,
3226 } ,
33- confirmBtn : {
34- marginTop : 20 ,
27+ subText : {
28+ paddingTop : 40 ,
29+ paddingBottom : 40 ,
3530 } ,
3631} ) ;
3732
3833const PayLightningSupplyAmountView = ( { store, nav, payment } ) => (
3934 < Background color = { color . purple } >
4035 < Header color = { color . purple } >
41- < BackButton onPress = { ( ) => nav . goPay ( ) } />
42- < Title title = "Supply Lightning Payment Amount" >
36+ < Button disabled onPress = { ( ) => { } } />
37+ < Title title = "Payment Request For Any Amount" >
4338 < LightningBoltIcon height = { 12 } width = { 6.1 } />
4439 </ Title >
4540 < CancelButton onPress = { ( ) => nav . goHome ( ) } />
4641 </ Header >
4742 < MainContent >
48- < Card >
49- < FormStretcher >
50- < BalanceLabel style = { styles . balance } >
51- < AmountInputField
52- style = { styles . amountInput }
53- autoFocus = { true }
54- value = { store . payment . amount }
55- onChangeText = { amount => payment . setAmount ( { amount } ) }
56- onSubmitEditing = { ( ) =>
57- payment . estimateLightningFeeForAmount ( payment . amount )
58- }
59- />
60- < BalanceLabelUnit style = { styles . unit } >
61- { store . unitFiatLabel }
62- </ BalanceLabelUnit >
63- </ BalanceLabel >
43+ < Card style = { styles . card } >
44+ < BalanceLabel style = { styles . balance } >
45+ < AmountInputField
46+ autoFocus = { true }
47+ value = { store . invoice . amount }
48+ onChangeText = { amount => payment . setAmount ( { amount } ) }
49+ onSubmitEditing = { ( ) =>
50+ payment . estimateLightningFeeForAmount ( payment . amount )
51+ }
52+ />
53+ < BalanceLabelUnit style = { styles . unit } >
54+ { store . unitFiatLabel }
55+ </ BalanceLabelUnit >
56+ </ BalanceLabel >
57+ < FormStretcher style = { styles . form } >
6458 { store . payment . note ? (
6559 < NamedField name = "Note" style = { styles . note } >
6660 { store . payment . note }
6761 </ NamedField >
6862 ) : null }
6963 </ FormStretcher >
64+ < FormSubText style = { styles . subText } >
65+ Payment Request did not specify an amount. This is often used for
66+ tips/donations.
67+ </ FormSubText >
7068 </ Card >
7169 </ MainContent >
7270 < SmallGlasButton onPress = { ( ) => nav . goPayLightningConfirm ( ) } >
73- Confirm
71+ Pay
7472 </ SmallGlasButton >
7573 </ Background >
7674) ;
0 commit comments