@adiraku/react-native-ui 1.2.9-canary-8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/DashboardBalanceCard/CardWallet.component.js +15 -15
- package/lib/commonjs/components/DashboardBalanceCard/CardWallet.component.js.map +1 -1
- package/lib/commonjs/components/DashboardBalanceCard/DashboardBalanceCard.component.js +80 -80
- package/lib/commonjs/components/DashboardBalanceCard/DashboardBalanceCard.component.js.map +1 -1
- package/lib/commonjs/components/StickyBar/StickyBar.component.js +2 -2
- package/lib/commonjs/components/StickyBar/StickyBar.style.js +1 -1
- package/lib/module/components/DashboardBalanceCard/CardWallet.component.js +19 -19
- package/lib/module/components/DashboardBalanceCard/CardWallet.component.js.map +1 -1
- package/lib/module/components/DashboardBalanceCard/DashboardBalanceCard.component.js +85 -85
- package/lib/module/components/DashboardBalanceCard/DashboardBalanceCard.component.js.map +1 -1
- package/lib/module/components/StickyBar/StickyBar.component.js +2 -2
- package/lib/module/components/StickyBar/StickyBar.component.js.map +1 -1
- package/lib/module/components/StickyBar/StickyBar.style.js +1 -1
- package/lib/module/components/StickyBar/StickyBar.style.js.map +1 -1
- package/lib/typescript/components/DashboardBalanceCard/CardWallet.component.d.ts +2 -2
- package/lib/typescript/components/DashboardBalanceCard/CardWallet.component.d.ts.map +1 -1
- package/lib/typescript/components/DashboardBalanceCard/DashboardBalanceCard.component.d.ts +2 -2
- package/lib/typescript/components/DashboardBalanceCard/DashboardBalanceCard.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/DashboardBalanceCard/CardWallet.component.tsx +70 -60
- package/src/components/DashboardBalanceCard/DashboardBalanceCard.component.tsx +461 -442
- package/src/components/StickyBar/StickyBar.component.tsx +2 -2
- package/src/components/StickyBar/StickyBar.style.tsx +1 -1
|
@@ -1,313 +1,199 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { View, Image, ScrollView, TouchableOpacity } from
|
|
3
|
-
import { Typography } from
|
|
4
|
-
import { Divider } from
|
|
5
|
-
import { Shadow } from
|
|
6
|
-
import { Radius } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Image, ScrollView, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { Typography } from '../typography/typography.component';
|
|
4
|
+
import { Divider } from '../Divider/Divider.component';
|
|
5
|
+
import { Shadow } from '../../themes';
|
|
6
|
+
import { Radius } from '../../themes';
|
|
7
7
|
|
|
8
8
|
interface Wallet {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
adirapoin: string;
|
|
10
|
+
points: number;
|
|
11
|
+
payment: string;
|
|
12
|
+
balance: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface DashboardBalanceCardProps {
|
|
16
|
+
variant: 'single' | 'singleDisable' | 'multiple' | 'multipleDisable';
|
|
17
|
+
wallets: Wallet[];
|
|
18
|
+
showInstallmentLimit: boolean;
|
|
19
|
+
installmentLimit?: string;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
22
|
const DashboardBalanceCard: React.FC<DashboardBalanceCardProps> = ({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
variant,
|
|
24
|
+
wallets,
|
|
25
|
+
showInstallmentLimit,
|
|
26
|
+
installmentLimit,
|
|
27
|
+
}) => {
|
|
28
|
+
return (
|
|
29
|
+
<View style={{ flex: 1 }}>
|
|
30
|
+
{variant === 'single' ? (
|
|
31
|
+
<View style={{ flex: 1 }}>
|
|
32
|
+
<View
|
|
33
|
+
style={{
|
|
34
|
+
width: 360,
|
|
35
|
+
height: 89,
|
|
36
|
+
flexDirection: 'row',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
...Shadow['shadow-elevation-1'],
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
<Image
|
|
33
42
|
style={{
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...Shadow["shadow-elevation-1"],
|
|
43
|
+
width: 20,
|
|
44
|
+
height: 20,
|
|
45
|
+
margin: 8,
|
|
46
|
+
marginLeft: 20,
|
|
39
47
|
}}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
marginLeft: 20,
|
|
47
|
-
}}
|
|
48
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapoin.png")}
|
|
49
|
-
/>
|
|
50
|
-
<View>
|
|
51
|
-
<View style={{ flexDirection: "row" }}>
|
|
52
|
-
<Typography variant="caption">
|
|
53
|
-
{wallets[0]?.adirapoin}
|
|
54
|
-
</Typography>
|
|
55
|
-
<Image
|
|
56
|
-
style={{
|
|
57
|
-
width: 16,
|
|
58
|
-
height: 16,
|
|
59
|
-
marginLeft: 10,
|
|
60
|
-
marginRight: 50,
|
|
61
|
-
}}
|
|
62
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
63
|
-
/>
|
|
64
|
-
</View>
|
|
65
|
-
<Typography variant="button-small">
|
|
66
|
-
{wallets[0]?.points} poin
|
|
67
|
-
</Typography>
|
|
68
|
-
</View>
|
|
69
|
-
<Divider
|
|
70
|
-
orientation="vertical"
|
|
71
|
-
style={{ marginHorizontal: 10, height: 38 }}
|
|
72
|
-
/>
|
|
73
|
-
<Image
|
|
74
|
-
style={{
|
|
75
|
-
width: 20,
|
|
76
|
-
height: 20,
|
|
77
|
-
margin: 8,
|
|
78
|
-
}}
|
|
79
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapay.png")}
|
|
80
|
-
/>
|
|
81
|
-
<View>
|
|
82
|
-
<View style={{ flexDirection: "row" }}>
|
|
83
|
-
<Typography variant="caption">
|
|
84
|
-
{wallets[0]?.payment}
|
|
85
|
-
</Typography>
|
|
86
|
-
<Image
|
|
87
|
-
style={{
|
|
88
|
-
width: 16,
|
|
89
|
-
height: 16,
|
|
90
|
-
marginLeft: 10,
|
|
91
|
-
}}
|
|
92
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
93
|
-
/>
|
|
94
|
-
</View>
|
|
95
|
-
<Typography variant="button-small">
|
|
96
|
-
{wallets[0]?.balance}{"\n"}
|
|
48
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapoin.png')}
|
|
49
|
+
/>
|
|
50
|
+
<View>
|
|
51
|
+
<View style={{ flexDirection: 'row' }}>
|
|
52
|
+
<Typography variant="caption">
|
|
53
|
+
{wallets[0]?.adirapoin}
|
|
97
54
|
</Typography>
|
|
55
|
+
<Image
|
|
56
|
+
style={{
|
|
57
|
+
width: 16,
|
|
58
|
+
height: 16,
|
|
59
|
+
marginLeft: 10,
|
|
60
|
+
marginRight: 50,
|
|
61
|
+
}}
|
|
62
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
63
|
+
/>
|
|
98
64
|
</View>
|
|
65
|
+
<Typography variant="button-small">
|
|
66
|
+
{wallets[0]?.points} poin
|
|
67
|
+
</Typography>
|
|
99
68
|
</View>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
69
|
+
<Divider
|
|
70
|
+
orientation="vertical"
|
|
71
|
+
style={{ marginHorizontal: 10, height: 38 }}
|
|
72
|
+
/>
|
|
73
|
+
<Image
|
|
74
|
+
style={{
|
|
75
|
+
width: 20,
|
|
76
|
+
height: 20,
|
|
77
|
+
margin: 8,
|
|
78
|
+
}}
|
|
79
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapay.png')}
|
|
80
|
+
/>
|
|
81
|
+
<View>
|
|
82
|
+
<View style={{ flexDirection: 'row' }}>
|
|
83
|
+
<Typography variant="caption">{wallets[0]?.payment}</Typography>
|
|
109
84
|
<Image
|
|
110
85
|
style={{
|
|
111
|
-
width:
|
|
112
|
-
height:
|
|
113
|
-
|
|
86
|
+
width: 16,
|
|
87
|
+
height: 16,
|
|
88
|
+
marginLeft: 10,
|
|
114
89
|
}}
|
|
115
|
-
source={require(
|
|
90
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
116
91
|
/>
|
|
117
|
-
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
|
118
|
-
<Typography variant="caption">Limit angsuran: </Typography>
|
|
119
|
-
<Typography variant="button-small">
|
|
120
|
-
{installmentLimit}
|
|
121
|
-
</Typography>
|
|
122
|
-
<Typography variant="caption"> / bulan</Typography>
|
|
123
|
-
<Image
|
|
124
|
-
style={{
|
|
125
|
-
width: 21,
|
|
126
|
-
height: 21,
|
|
127
|
-
marginLeft: 70,
|
|
128
|
-
}}
|
|
129
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
130
|
-
/>
|
|
131
|
-
</View>
|
|
132
92
|
</View>
|
|
133
|
-
|
|
93
|
+
<Typography variant="button-small">
|
|
94
|
+
{wallets[0]?.balance}
|
|
95
|
+
{'\n'}
|
|
96
|
+
</Typography>
|
|
97
|
+
</View>
|
|
134
98
|
</View>
|
|
135
|
-
|
|
136
|
-
<View style={{ flex: 1 }}>
|
|
99
|
+
{showInstallmentLimit && (
|
|
137
100
|
<View
|
|
138
101
|
style={{
|
|
102
|
+
flexDirection: 'row',
|
|
103
|
+
backgroundColor: '#FFF9C1',
|
|
139
104
|
width: 360,
|
|
140
|
-
height:
|
|
141
|
-
flexDirection: "row",
|
|
142
|
-
alignItems: "center",
|
|
143
|
-
...Shadow["shadow-elevation-1"],
|
|
105
|
+
height: 37,
|
|
144
106
|
}}
|
|
145
107
|
>
|
|
146
108
|
<Image
|
|
147
109
|
style={{
|
|
148
|
-
width:
|
|
149
|
-
height:
|
|
110
|
+
width: 21,
|
|
111
|
+
height: 21,
|
|
150
112
|
margin: 8,
|
|
151
|
-
marginLeft: 20,
|
|
152
113
|
}}
|
|
153
|
-
source={require(
|
|
114
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/CreditLimit.png')}
|
|
154
115
|
/>
|
|
155
|
-
<View>
|
|
156
|
-
<
|
|
157
|
-
<Typography variant="caption">
|
|
158
|
-
{wallets[0]?.adirapoin}
|
|
159
|
-
</Typography>
|
|
160
|
-
<Image
|
|
161
|
-
style={{
|
|
162
|
-
width: 16,
|
|
163
|
-
height: 16,
|
|
164
|
-
marginLeft: 10,
|
|
165
|
-
marginRight: 50,
|
|
166
|
-
}}
|
|
167
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
168
|
-
/>
|
|
169
|
-
</View>
|
|
170
|
-
<Typography variant="button-small">
|
|
171
|
-
{wallets[0]?.points} poin
|
|
172
|
-
</Typography>
|
|
173
|
-
</View>
|
|
174
|
-
<Divider
|
|
175
|
-
orientation="vertical"
|
|
176
|
-
style={{ marginHorizontal: 10, height: 38 }}
|
|
177
|
-
/>
|
|
178
|
-
<View style={{
|
|
179
|
-
width: 140,
|
|
180
|
-
height: 57,
|
|
181
|
-
backgroundColor: '#EEF0F2',
|
|
182
|
-
borderRadius: Radius[12],
|
|
183
|
-
flexDirection: 'row',
|
|
184
|
-
alignItems: 'center'}}>
|
|
185
|
-
<Image
|
|
186
|
-
style={{
|
|
187
|
-
width: 20,
|
|
188
|
-
height: 20,
|
|
189
|
-
margin: 8,
|
|
190
|
-
}}
|
|
191
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconDwallet.png")}
|
|
192
|
-
/>
|
|
193
|
-
<View>
|
|
194
|
-
<View style={{ flexDirection: "row" }}>
|
|
195
|
-
<Typography variant="caption">
|
|
196
|
-
{wallets[0]?.payment}
|
|
197
|
-
</Typography>
|
|
198
|
-
<Image
|
|
199
|
-
style={{
|
|
200
|
-
width: 16,
|
|
201
|
-
height: 16,
|
|
202
|
-
marginLeft: 10,
|
|
203
|
-
}}
|
|
204
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
205
|
-
/>
|
|
206
|
-
</View>
|
|
116
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
117
|
+
<Typography variant="caption">Limit angsuran: </Typography>
|
|
207
118
|
<Typography variant="button-small">
|
|
208
|
-
{
|
|
119
|
+
{installmentLimit}
|
|
209
120
|
</Typography>
|
|
210
|
-
|
|
211
|
-
</View>
|
|
212
|
-
</View>
|
|
213
|
-
{showInstallmentLimit && (
|
|
214
|
-
<View
|
|
215
|
-
style={{
|
|
216
|
-
flexDirection: "row",
|
|
217
|
-
backgroundColor: "#FFF9C1",
|
|
218
|
-
width: 360,
|
|
219
|
-
height: 37,
|
|
220
|
-
}}
|
|
221
|
-
>
|
|
121
|
+
<Typography variant="caption"> / bulan</Typography>
|
|
222
122
|
<Image
|
|
223
123
|
style={{
|
|
224
124
|
width: 21,
|
|
225
125
|
height: 21,
|
|
226
|
-
|
|
126
|
+
marginLeft: 70,
|
|
227
127
|
}}
|
|
228
|
-
source={require(
|
|
128
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
229
129
|
/>
|
|
230
|
-
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
|
231
|
-
<Typography variant="caption">Limit angsuran: </Typography>
|
|
232
|
-
<Typography variant="button-small">
|
|
233
|
-
{installmentLimit}
|
|
234
|
-
</Typography>
|
|
235
|
-
<Typography variant="caption"> / bulan</Typography>
|
|
236
|
-
<Image
|
|
237
|
-
style={{
|
|
238
|
-
width: 21,
|
|
239
|
-
height: 21,
|
|
240
|
-
marginLeft: 70,
|
|
241
|
-
}}
|
|
242
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
243
|
-
/>
|
|
244
|
-
</View>
|
|
245
130
|
</View>
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
131
|
+
</View>
|
|
132
|
+
)}
|
|
133
|
+
</View>
|
|
134
|
+
) : variant === 'singleDisable' ? (
|
|
135
|
+
<View style={{ flex: 1 }}>
|
|
136
|
+
<View
|
|
137
|
+
style={{
|
|
138
|
+
width: 360,
|
|
139
|
+
height: 89,
|
|
140
|
+
flexDirection: 'row',
|
|
141
|
+
alignItems: 'center',
|
|
142
|
+
...Shadow['shadow-elevation-1'],
|
|
143
|
+
}}
|
|
144
|
+
>
|
|
145
|
+
<Image
|
|
251
146
|
style={{
|
|
252
|
-
width:
|
|
253
|
-
height:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
...Shadow["shadow-elevation-1"],
|
|
147
|
+
width: 20,
|
|
148
|
+
height: 20,
|
|
149
|
+
margin: 8,
|
|
150
|
+
marginLeft: 20,
|
|
257
151
|
}}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
marginLeft: 20,
|
|
265
|
-
}}
|
|
266
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapoin.png")}
|
|
267
|
-
/>
|
|
268
|
-
<View>
|
|
269
|
-
<View style={{ flexDirection: "row" }}>
|
|
270
|
-
<Typography variant="caption">
|
|
271
|
-
{wallets[0]?.adirapoin}
|
|
272
|
-
</Typography>
|
|
273
|
-
<Image
|
|
274
|
-
style={{
|
|
275
|
-
width: 16,
|
|
276
|
-
height: 16,
|
|
277
|
-
marginLeft: 10,
|
|
278
|
-
marginRight: 50,
|
|
279
|
-
}}
|
|
280
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
281
|
-
/>
|
|
282
|
-
</View>
|
|
283
|
-
<Typography variant="button-small">
|
|
284
|
-
{wallets[0]?.points} poin
|
|
152
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapoin.png')}
|
|
153
|
+
/>
|
|
154
|
+
<View>
|
|
155
|
+
<View style={{ flexDirection: 'row' }}>
|
|
156
|
+
<Typography variant="caption">
|
|
157
|
+
{wallets[0]?.adirapoin}
|
|
285
158
|
</Typography>
|
|
159
|
+
<Image
|
|
160
|
+
style={{
|
|
161
|
+
width: 16,
|
|
162
|
+
height: 16,
|
|
163
|
+
marginLeft: 10,
|
|
164
|
+
marginRight: 50,
|
|
165
|
+
}}
|
|
166
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
167
|
+
/>
|
|
286
168
|
</View>
|
|
287
|
-
<
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
169
|
+
<Typography variant="button-small">
|
|
170
|
+
{wallets[0]?.points} poin
|
|
171
|
+
</Typography>
|
|
172
|
+
</View>
|
|
173
|
+
<Divider
|
|
174
|
+
orientation="vertical"
|
|
175
|
+
style={{ marginHorizontal: 10, height: 38 }}
|
|
176
|
+
/>
|
|
177
|
+
<View
|
|
178
|
+
style={{
|
|
179
|
+
width: 140,
|
|
180
|
+
height: 57,
|
|
181
|
+
backgroundColor: '#EEF0F2',
|
|
182
|
+
borderRadius: Radius[12],
|
|
298
183
|
flexDirection: 'row',
|
|
299
184
|
alignItems: 'center',
|
|
300
|
-
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
301
187
|
<Image
|
|
302
188
|
style={{
|
|
303
189
|
width: 20,
|
|
304
190
|
height: 20,
|
|
305
191
|
margin: 8,
|
|
306
192
|
}}
|
|
307
|
-
source={require(
|
|
193
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconDwallet.png')}
|
|
308
194
|
/>
|
|
309
195
|
<View>
|
|
310
|
-
<View style={{ flexDirection:
|
|
196
|
+
<View style={{ flexDirection: 'row' }}>
|
|
311
197
|
<Typography variant="caption">
|
|
312
198
|
{wallets[0]?.payment}
|
|
313
199
|
</Typography>
|
|
@@ -317,243 +203,376 @@ const DashboardBalanceCard: React.FC<DashboardBalanceCardProps> = ({
|
|
|
317
203
|
height: 16,
|
|
318
204
|
marginLeft: 10,
|
|
319
205
|
}}
|
|
320
|
-
source={require(
|
|
206
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
321
207
|
/>
|
|
322
208
|
</View>
|
|
323
209
|
<Typography variant="button-small">
|
|
324
|
-
{wallets[0]?.balance}
|
|
210
|
+
{wallets[0]?.balance}
|
|
211
|
+
{'\n'}
|
|
325
212
|
</Typography>
|
|
326
213
|
</View>
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
borderRadius: Radius[12],
|
|
214
|
+
</View>
|
|
215
|
+
</View>
|
|
216
|
+
{showInstallmentLimit && (
|
|
217
|
+
<View
|
|
218
|
+
style={{
|
|
333
219
|
flexDirection: 'row',
|
|
334
|
-
|
|
220
|
+
backgroundColor: '#FFF9C1',
|
|
221
|
+
width: 360,
|
|
222
|
+
height: 37,
|
|
223
|
+
}}
|
|
224
|
+
>
|
|
335
225
|
<Image
|
|
336
226
|
style={{
|
|
337
|
-
width:
|
|
338
|
-
height:
|
|
227
|
+
width: 21,
|
|
228
|
+
height: 21,
|
|
339
229
|
margin: 8,
|
|
340
230
|
}}
|
|
341
|
-
source={require(
|
|
231
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/CreditLimit.png')}
|
|
342
232
|
/>
|
|
343
|
-
<View>
|
|
344
|
-
<
|
|
345
|
-
<Typography variant="caption">
|
|
346
|
-
{wallets[0]?.payment}
|
|
347
|
-
</Typography>
|
|
348
|
-
<Image
|
|
349
|
-
style={{
|
|
350
|
-
width: 16,
|
|
351
|
-
height: 16,
|
|
352
|
-
marginLeft: 10,
|
|
353
|
-
}}
|
|
354
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
355
|
-
/>
|
|
356
|
-
</View>
|
|
233
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
234
|
+
<Typography variant="caption">Limit angsuran: </Typography>
|
|
357
235
|
<Typography variant="button-small">
|
|
358
|
-
{
|
|
236
|
+
{installmentLimit}
|
|
359
237
|
</Typography>
|
|
360
|
-
|
|
361
|
-
</TouchableOpacity>
|
|
362
|
-
</View>
|
|
363
|
-
</ScrollView>
|
|
364
|
-
</View>
|
|
365
|
-
{showInstallmentLimit && (
|
|
366
|
-
<View
|
|
367
|
-
style={{
|
|
368
|
-
flexDirection: "row",
|
|
369
|
-
backgroundColor: "#FFF9C1",
|
|
370
|
-
width: 360,
|
|
371
|
-
height: 37,
|
|
372
|
-
}}
|
|
373
|
-
>
|
|
238
|
+
<Typography variant="caption"> / bulan</Typography>
|
|
374
239
|
<Image
|
|
375
240
|
style={{
|
|
376
241
|
width: 21,
|
|
377
242
|
height: 21,
|
|
378
|
-
|
|
243
|
+
marginLeft: 70,
|
|
379
244
|
}}
|
|
380
|
-
source={require(
|
|
245
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
381
246
|
/>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
247
|
+
</View>
|
|
248
|
+
</View>
|
|
249
|
+
)}
|
|
250
|
+
</View>
|
|
251
|
+
) : variant === 'multiple' ? (
|
|
252
|
+
<View style={{ flex: 1 }}>
|
|
253
|
+
<View
|
|
254
|
+
style={{
|
|
255
|
+
width: 360,
|
|
256
|
+
height: 89,
|
|
257
|
+
flexDirection: 'row',
|
|
258
|
+
alignItems: 'center',
|
|
259
|
+
...Shadow['shadow-elevation-1'],
|
|
260
|
+
}}
|
|
261
|
+
>
|
|
262
|
+
<Image
|
|
263
|
+
style={{
|
|
264
|
+
width: 20,
|
|
265
|
+
height: 20,
|
|
266
|
+
margin: 8,
|
|
267
|
+
marginLeft: 20,
|
|
268
|
+
}}
|
|
269
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapoin.png')}
|
|
270
|
+
/>
|
|
271
|
+
<View>
|
|
272
|
+
<View style={{ flexDirection: 'row' }}>
|
|
273
|
+
<Typography variant="caption">
|
|
274
|
+
{wallets[0]?.adirapoin}
|
|
275
|
+
</Typography>
|
|
276
|
+
<Image
|
|
277
|
+
style={{
|
|
278
|
+
width: 16,
|
|
279
|
+
height: 16,
|
|
280
|
+
marginLeft: 10,
|
|
281
|
+
marginRight: 50,
|
|
282
|
+
}}
|
|
283
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
284
|
+
/>
|
|
285
|
+
</View>
|
|
286
|
+
<Typography variant="button-small">
|
|
287
|
+
{wallets[0]?.points} poin
|
|
288
|
+
</Typography>
|
|
289
|
+
</View>
|
|
290
|
+
<Divider
|
|
291
|
+
orientation="vertical"
|
|
292
|
+
style={{ marginHorizontal: 10, height: 38 }}
|
|
293
|
+
/>
|
|
294
|
+
<ScrollView>
|
|
295
|
+
<View style={{ flexDirection: 'row', height: 59 }}>
|
|
296
|
+
<TouchableOpacity
|
|
297
|
+
style={{
|
|
298
|
+
width: 140,
|
|
299
|
+
height: 57,
|
|
300
|
+
...Shadow['shadow-elevation-1'],
|
|
301
|
+
borderRadius: Radius[12],
|
|
302
|
+
flexDirection: 'row',
|
|
303
|
+
alignItems: 'center',
|
|
304
|
+
marginRight: 7,
|
|
305
|
+
}}
|
|
306
|
+
>
|
|
388
307
|
<Image
|
|
389
308
|
style={{
|
|
390
|
-
width:
|
|
391
|
-
height:
|
|
392
|
-
|
|
309
|
+
width: 20,
|
|
310
|
+
height: 20,
|
|
311
|
+
margin: 8,
|
|
393
312
|
}}
|
|
394
|
-
source={require(
|
|
313
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconDwallet.png')}
|
|
395
314
|
/>
|
|
396
|
-
|
|
315
|
+
<View>
|
|
316
|
+
<View style={{ flexDirection: 'row' }}>
|
|
317
|
+
<Typography variant="caption">
|
|
318
|
+
{wallets[0]?.payment}
|
|
319
|
+
</Typography>
|
|
320
|
+
<Image
|
|
321
|
+
style={{
|
|
322
|
+
width: 16,
|
|
323
|
+
height: 16,
|
|
324
|
+
marginLeft: 10,
|
|
325
|
+
}}
|
|
326
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
327
|
+
/>
|
|
328
|
+
</View>
|
|
329
|
+
<Typography variant="button-small">
|
|
330
|
+
{wallets[0]?.balance}
|
|
331
|
+
{'\n'}
|
|
332
|
+
</Typography>
|
|
333
|
+
</View>
|
|
334
|
+
</TouchableOpacity>
|
|
335
|
+
<TouchableOpacity
|
|
336
|
+
style={{
|
|
337
|
+
width: 140,
|
|
338
|
+
height: 57,
|
|
339
|
+
...Shadow['shadow-elevation-1'],
|
|
340
|
+
borderRadius: Radius[12],
|
|
341
|
+
flexDirection: 'row',
|
|
342
|
+
alignItems: 'center',
|
|
343
|
+
}}
|
|
344
|
+
>
|
|
345
|
+
<Image
|
|
346
|
+
style={{
|
|
347
|
+
width: 20,
|
|
348
|
+
height: 20,
|
|
349
|
+
margin: 8,
|
|
350
|
+
}}
|
|
351
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconDwallet.png')}
|
|
352
|
+
/>
|
|
353
|
+
<View>
|
|
354
|
+
<View style={{ flexDirection: 'row' }}>
|
|
355
|
+
<Typography variant="caption">
|
|
356
|
+
{wallets[0]?.payment}
|
|
357
|
+
</Typography>
|
|
358
|
+
<Image
|
|
359
|
+
style={{
|
|
360
|
+
width: 16,
|
|
361
|
+
height: 16,
|
|
362
|
+
marginLeft: 10,
|
|
363
|
+
}}
|
|
364
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
365
|
+
/>
|
|
366
|
+
</View>
|
|
367
|
+
<Typography variant="button-small">
|
|
368
|
+
{wallets[0]?.balance}
|
|
369
|
+
{'\n'}
|
|
370
|
+
</Typography>
|
|
371
|
+
</View>
|
|
372
|
+
</TouchableOpacity>
|
|
397
373
|
</View>
|
|
398
|
-
|
|
374
|
+
</ScrollView>
|
|
399
375
|
</View>
|
|
400
|
-
|
|
401
|
-
<View style={{ flex: 1 }}>
|
|
376
|
+
{showInstallmentLimit && (
|
|
402
377
|
<View
|
|
403
378
|
style={{
|
|
379
|
+
flexDirection: 'row',
|
|
380
|
+
backgroundColor: '#FFF9C1',
|
|
404
381
|
width: 360,
|
|
405
|
-
height:
|
|
406
|
-
flexDirection: "row",
|
|
407
|
-
alignItems: "center",
|
|
408
|
-
...Shadow["shadow-elevation-1"],
|
|
382
|
+
height: 37,
|
|
409
383
|
}}
|
|
410
384
|
>
|
|
411
385
|
<Image
|
|
412
386
|
style={{
|
|
413
|
-
width:
|
|
414
|
-
height:
|
|
387
|
+
width: 21,
|
|
388
|
+
height: 21,
|
|
415
389
|
margin: 8,
|
|
416
|
-
marginLeft: 20,
|
|
417
390
|
}}
|
|
418
|
-
source={require(
|
|
391
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/CreditLimit.png')}
|
|
419
392
|
/>
|
|
420
|
-
<View>
|
|
421
|
-
<
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
393
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
394
|
+
<Typography variant="caption">Limit angsuran: </Typography>
|
|
395
|
+
<Typography variant="button-small">
|
|
396
|
+
{installmentLimit}
|
|
397
|
+
</Typography>
|
|
398
|
+
<Typography variant="caption"> / bulan</Typography>
|
|
399
|
+
<Image
|
|
400
|
+
style={{
|
|
401
|
+
width: 21,
|
|
402
|
+
height: 21,
|
|
403
|
+
marginLeft: 70,
|
|
404
|
+
}}
|
|
405
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
406
|
+
/>
|
|
407
|
+
</View>
|
|
408
|
+
</View>
|
|
409
|
+
)}
|
|
410
|
+
</View>
|
|
411
|
+
) : (
|
|
412
|
+
<View style={{ flex: 1 }}>
|
|
413
|
+
<View
|
|
414
|
+
style={{
|
|
415
|
+
width: 360,
|
|
416
|
+
height: 89,
|
|
417
|
+
flexDirection: 'row',
|
|
418
|
+
alignItems: 'center',
|
|
419
|
+
...Shadow['shadow-elevation-1'],
|
|
420
|
+
}}
|
|
421
|
+
>
|
|
422
|
+
<Image
|
|
423
|
+
style={{
|
|
424
|
+
width: 20,
|
|
425
|
+
height: 20,
|
|
426
|
+
margin: 8,
|
|
427
|
+
marginLeft: 20,
|
|
428
|
+
}}
|
|
429
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconAdirapoin.png')}
|
|
430
|
+
/>
|
|
431
|
+
<View>
|
|
432
|
+
<View style={{ flexDirection: 'row' }}>
|
|
433
|
+
<Typography variant="caption">
|
|
434
|
+
{wallets[0]?.adirapoin}
|
|
435
|
+
</Typography>
|
|
436
|
+
<Image
|
|
437
|
+
style={{
|
|
438
|
+
width: 16,
|
|
439
|
+
height: 16,
|
|
440
|
+
marginLeft: 10,
|
|
441
|
+
marginRight: 50,
|
|
442
|
+
}}
|
|
443
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
444
|
+
/>
|
|
445
|
+
</View>
|
|
446
|
+
<Typography variant="button-small">
|
|
447
|
+
{wallets[0]?.points} poin
|
|
448
|
+
</Typography>
|
|
449
|
+
</View>
|
|
450
|
+
<Divider
|
|
451
|
+
orientation="vertical"
|
|
452
|
+
style={{ marginHorizontal: 10, height: 38 }}
|
|
453
|
+
/>
|
|
454
|
+
<ScrollView>
|
|
455
|
+
<View style={{ flexDirection: 'row', height: 59 }}>
|
|
456
|
+
<TouchableOpacity
|
|
457
|
+
style={{
|
|
458
|
+
width: 140,
|
|
459
|
+
height: 57,
|
|
460
|
+
...Shadow['shadow-elevation-1'],
|
|
461
|
+
borderRadius: Radius[12],
|
|
462
|
+
flexDirection: 'row',
|
|
463
|
+
alignItems: 'center',
|
|
464
|
+
backgroundColor: '#EEF0F2',
|
|
465
|
+
marginRight: 7,
|
|
466
|
+
}}
|
|
467
|
+
>
|
|
425
468
|
<Image
|
|
426
469
|
style={{
|
|
427
|
-
width:
|
|
428
|
-
height:
|
|
429
|
-
|
|
430
|
-
marginRight: 50,
|
|
470
|
+
width: 20,
|
|
471
|
+
height: 20,
|
|
472
|
+
margin: 8,
|
|
431
473
|
}}
|
|
432
|
-
source={require(
|
|
474
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconDwallet.png')}
|
|
433
475
|
/>
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
{wallets[0]?.payment}
|
|
466
|
-
</Typography>
|
|
476
|
+
<View>
|
|
477
|
+
<View style={{ flexDirection: 'row' }}>
|
|
478
|
+
<Typography variant="caption">
|
|
479
|
+
{wallets[0]?.payment}
|
|
480
|
+
</Typography>
|
|
481
|
+
<Image
|
|
482
|
+
style={{
|
|
483
|
+
width: 16,
|
|
484
|
+
height: 16,
|
|
485
|
+
marginLeft: 10,
|
|
486
|
+
}}
|
|
487
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
488
|
+
/>
|
|
489
|
+
</View>
|
|
490
|
+
<Typography variant="button-small">
|
|
491
|
+
{wallets[0]?.balance}
|
|
492
|
+
{'\n'}
|
|
493
|
+
</Typography>
|
|
494
|
+
</View>
|
|
495
|
+
</TouchableOpacity>
|
|
496
|
+
<TouchableOpacity
|
|
497
|
+
style={{
|
|
498
|
+
width: 140,
|
|
499
|
+
height: 57,
|
|
500
|
+
...Shadow['shadow-elevation-1'],
|
|
501
|
+
borderRadius: Radius[12],
|
|
502
|
+
flexDirection: 'row',
|
|
503
|
+
backgroundColor: '#EEF0F2',
|
|
504
|
+
alignItems: 'center',
|
|
505
|
+
}}
|
|
506
|
+
>
|
|
467
507
|
<Image
|
|
468
508
|
style={{
|
|
469
|
-
width:
|
|
470
|
-
height:
|
|
471
|
-
|
|
509
|
+
width: 20,
|
|
510
|
+
height: 20,
|
|
511
|
+
margin: 8,
|
|
472
512
|
}}
|
|
473
|
-
source={require(
|
|
513
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/IconDwallet.png')}
|
|
474
514
|
/>
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
515
|
+
<View>
|
|
516
|
+
<View style={{ flexDirection: 'row' }}>
|
|
517
|
+
<Typography variant="caption">
|
|
518
|
+
{wallets[0]?.payment}
|
|
519
|
+
</Typography>
|
|
520
|
+
<Image
|
|
521
|
+
style={{
|
|
522
|
+
width: 16,
|
|
523
|
+
height: 16,
|
|
524
|
+
marginLeft: 10,
|
|
525
|
+
}}
|
|
526
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
527
|
+
/>
|
|
528
|
+
</View>
|
|
529
|
+
<Typography variant="button-small">
|
|
530
|
+
{wallets[0]?.balance}
|
|
531
|
+
{'\n'}
|
|
532
|
+
</Typography>
|
|
533
|
+
</View>
|
|
534
|
+
</TouchableOpacity>
|
|
479
535
|
</View>
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
borderRadius: Radius[12],
|
|
536
|
+
</ScrollView>
|
|
537
|
+
</View>
|
|
538
|
+
{showInstallmentLimit && (
|
|
539
|
+
<View
|
|
540
|
+
style={{
|
|
486
541
|
flexDirection: 'row',
|
|
487
|
-
backgroundColor: '#
|
|
488
|
-
|
|
542
|
+
backgroundColor: '#FFF9C1',
|
|
543
|
+
width: 360,
|
|
544
|
+
height: 37,
|
|
545
|
+
}}
|
|
546
|
+
>
|
|
489
547
|
<Image
|
|
490
548
|
style={{
|
|
491
|
-
width:
|
|
492
|
-
height:
|
|
549
|
+
width: 21,
|
|
550
|
+
height: 21,
|
|
493
551
|
margin: 8,
|
|
494
552
|
}}
|
|
495
|
-
source={require(
|
|
553
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/CreditLimit.png')}
|
|
496
554
|
/>
|
|
497
|
-
<View>
|
|
498
|
-
<
|
|
499
|
-
<Typography variant="caption">
|
|
500
|
-
{wallets[0]?.payment}
|
|
501
|
-
</Typography>
|
|
502
|
-
<Image
|
|
503
|
-
style={{
|
|
504
|
-
width: 16,
|
|
505
|
-
height: 16,
|
|
506
|
-
marginLeft: 10,
|
|
507
|
-
}}
|
|
508
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
509
|
-
/>
|
|
510
|
-
</View>
|
|
555
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
556
|
+
<Typography variant="caption">Limit angsuran: </Typography>
|
|
511
557
|
<Typography variant="button-small">
|
|
512
|
-
{
|
|
558
|
+
{installmentLimit}
|
|
513
559
|
</Typography>
|
|
514
|
-
|
|
515
|
-
</TouchableOpacity>
|
|
516
|
-
</View>
|
|
517
|
-
</ScrollView>
|
|
518
|
-
</View>
|
|
519
|
-
{showInstallmentLimit && (
|
|
520
|
-
<View
|
|
521
|
-
style={{
|
|
522
|
-
flexDirection: "row",
|
|
523
|
-
backgroundColor: "#FFF9C1",
|
|
524
|
-
width: 360,
|
|
525
|
-
height: 37,
|
|
526
|
-
}}
|
|
527
|
-
>
|
|
560
|
+
<Typography variant="caption"> / bulan</Typography>
|
|
528
561
|
<Image
|
|
529
562
|
style={{
|
|
530
563
|
width: 21,
|
|
531
564
|
height: 21,
|
|
532
|
-
|
|
565
|
+
marginLeft: 70,
|
|
533
566
|
}}
|
|
534
|
-
source={require(
|
|
567
|
+
source={require('../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png')}
|
|
535
568
|
/>
|
|
536
|
-
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
|
537
|
-
<Typography variant="caption">Limit angsuran: </Typography>
|
|
538
|
-
<Typography variant="button-small">
|
|
539
|
-
{installmentLimit}
|
|
540
|
-
</Typography>
|
|
541
|
-
<Typography variant="caption"> / bulan</Typography>
|
|
542
|
-
<Image
|
|
543
|
-
style={{
|
|
544
|
-
width: 21,
|
|
545
|
-
height: 21,
|
|
546
|
-
marginLeft: 70,
|
|
547
|
-
}}
|
|
548
|
-
source={require("../../../storybookwebpreview/assets/images/DashboardBalanceCard/Navigation.png")}
|
|
549
|
-
/>
|
|
550
|
-
</View>
|
|
551
569
|
</View>
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
570
|
+
</View>
|
|
571
|
+
)}
|
|
572
|
+
</View>
|
|
573
|
+
)}
|
|
574
|
+
</View>
|
|
575
|
+
);
|
|
576
|
+
};
|
|
558
577
|
|
|
559
|
-
export default DashboardBalanceCard;
|
|
578
|
+
export default DashboardBalanceCard;
|