@@ -6,71 +6,69 @@ import Background from '../component/background';
6
6
import MainContent from '../component/main-content' ;
7
7
import { NamedField , AmountInputField } from '../component/field' ;
8
8
import { Header , Title } from '../component/header' ;
9
- import { CancelButton , BackButton , SmallGlasButton } from '../component/button' ;
9
+ import { CancelButton , Button , SmallGlasButton } from '../component/button' ;
10
10
import Card from '../component/card' ;
11
11
import LightningBoltIcon from '../asset/icon/lightning-bolt' ;
12
- import { FormStretcher } from '../component/form' ;
12
+ import { FormStretcher , FormSubText } from '../component/form' ;
13
13
import { BalanceLabel , BalanceLabelUnit } from '../component/label' ;
14
14
import { color } from '../component/style' ;
15
15
16
16
const styles = StyleSheet . create ( {
17
17
balance : {
18
- marginBottom : 10 ,
19
- } ,
20
- numeral : {
21
- color : color . blackText ,
18
+ marginTop : 15 ,
22
19
} ,
23
20
unit : {
24
21
color : color . blackText ,
25
22
} ,
26
- totalLbl : {
27
- marginTop : 5 ,
28
- } ,
29
- note : {
30
- marginTop : 5 ,
31
- borderBottomWidth : 0 ,
23
+ form : {
24
+ paddingTop : 10 ,
25
+ paddingBottom : 10 ,
32
26
} ,
33
- confirmBtn : {
34
- marginTop : 20 ,
27
+ subText : {
28
+ paddingTop : 40 ,
29
+ paddingBottom : 40 ,
35
30
} ,
36
31
} ) ;
37
32
38
33
const PayLightningSupplyAmountView = ( { store, nav, payment } ) => (
39
34
< Background color = { color . purple } >
40
35
< 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" >
43
38
< LightningBoltIcon height = { 12 } width = { 6.1 } />
44
39
</ Title >
45
40
< CancelButton onPress = { ( ) => nav . goHome ( ) } />
46
41
</ Header >
47
42
< 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 } >
64
58
{ store . payment . note ? (
65
59
< NamedField name = "Note" style = { styles . note } >
66
60
{ store . payment . note }
67
61
</ NamedField >
68
62
) : null }
69
63
</ FormStretcher >
64
+ < FormSubText style = { styles . subText } >
65
+ Payment Request did not specify an amount. This is often used for
66
+ tips/donations.
67
+ </ FormSubText >
70
68
</ Card >
71
69
</ MainContent >
72
70
< SmallGlasButton onPress = { ( ) => nav . goPayLightningConfirm ( ) } >
73
- Confirm
71
+ Pay
74
72
</ SmallGlasButton >
75
73
</ Background >
76
74
) ;
0 commit comments