@finspringinnovations/fixeddepositsdk 1.0.2 → 1.0.4
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/api/customerApi.js +1 -0
- package/lib/api/fdApi.d.ts +401 -1
- package/lib/api/fdApi.js +24 -2
- package/lib/components/PendingFDBottomSheet.js +27 -18
- package/lib/config/appDataConfig.js +3 -2
- package/lib/config/workflowConstants.d.ts +40 -30
- package/lib/config/workflowConstants.js +35 -24
- package/lib/constants/strings/fd.d.ts +2 -2
- package/lib/constants/strings/fd.js +2 -2
- package/lib/navigation/RootNavigator.js +167 -196
- package/lib/navigation/types.d.ts +4 -1
- package/lib/navigation/workflowNavigator.d.ts +1 -1
- package/lib/navigation/workflowNavigator.js +107 -26
- package/lib/screens/AadhaarVerification.js +1 -11
- package/lib/screens/AddBankAccount.js +1 -11
- package/lib/screens/BankDetail.js +1 -11
- package/lib/screens/Employee.js +1 -11
- package/lib/screens/FDCalculator.js +2 -12
- package/lib/screens/FDList.js +531 -417
- package/lib/screens/FindIFSC.js +1 -11
- package/lib/screens/NomineeDetail.js +12 -22
- package/lib/screens/PayNow.js +1 -11
- package/lib/screens/Payment.js +2 -11
- package/lib/screens/PaymentStatus.js +24 -21
- package/lib/screens/ReviewKYC.js +3 -12
- package/lib/types/workflowTypes.d.ts +1 -1
- package/package.json +50 -50
- package/src/api/customerApi.ts +1 -0
- package/src/api/fdApi.ts +28 -1
- package/src/components/PendingFDBottomSheet.tsx +151 -123
- package/src/config/appDataConfig.ts +245 -242
- package/src/config/workflowConstants.ts +51 -39
- package/src/constants/strings/bank.ts +80 -80
- package/src/constants/strings/fd.ts +2 -2
- package/src/navigation/RootNavigator.tsx +667 -651
- package/src/navigation/types.ts +4 -1
- package/src/navigation/workflowNavigator.ts +170 -107
- package/src/screens/AadhaarVerification.tsx +1 -15
- package/src/screens/AddBankAccount.tsx +2 -16
- package/src/screens/BankDetail.tsx +1 -15
- package/src/screens/Employee.tsx +1 -15
- package/src/screens/FDCalculator.tsx +4 -18
- package/src/screens/FDList.tsx +2311 -2170
- package/src/screens/FindIFSC.tsx +2 -16
- package/src/screens/NomineeDetail.tsx +762 -775
- package/src/screens/PayNow.tsx +2 -16
- package/src/screens/Payment.tsx +190 -203
- package/src/screens/PaymentStatus.tsx +574 -576
- package/src/screens/ReviewKYC.tsx +2 -15
- package/src/types/workflowTypes.ts +1 -10
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
Image,
|
|
12
12
|
Platform,
|
|
13
13
|
} from 'react-native';
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
import ActiveFDCard from './ActiveFDCard';
|
|
16
16
|
import ActionButton from './ActionButton';
|
|
17
17
|
import { useColors, useTypography, useSpacing, useTheme } from '../theme/ThemeContext';
|
|
@@ -54,28 +54,22 @@ const PendingFDBottomSheet: React.FC<PendingFDBottomSheetProps> = ({
|
|
|
54
54
|
const typography = useTypography();
|
|
55
55
|
const spacing = useSpacing();
|
|
56
56
|
const { themeName } = useTheme();
|
|
57
|
+
|
|
57
58
|
const styles = createStyles(colors, typography, spacing, themeName);
|
|
58
59
|
|
|
59
60
|
return (
|
|
60
|
-
<Modal
|
|
61
|
-
visible={visible}
|
|
62
|
-
transparent
|
|
63
|
-
animationType="slide"
|
|
64
|
-
onRequestClose={onClose}
|
|
65
|
-
>
|
|
61
|
+
<Modal visible={visible} transparent animationType="slide" onRequestClose={onClose}>
|
|
66
62
|
<View style={styles.overlay}>
|
|
67
63
|
<View style={styles.bottomSheet}>
|
|
68
|
-
<SafeAreaView
|
|
64
|
+
<SafeAreaView>
|
|
69
65
|
{/* Header */}
|
|
70
66
|
<View style={styles.header}>
|
|
71
67
|
<View style={styles.headerContent}>
|
|
72
68
|
<Text style={styles.title}>
|
|
73
69
|
Please Wait! You also have a pending journey with progress saved:
|
|
74
70
|
</Text>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
onPress={onClose}
|
|
78
|
-
>
|
|
71
|
+
|
|
72
|
+
<TouchableOpacity style={styles.closeButton} onPress={onClose}>
|
|
79
73
|
<Image
|
|
80
74
|
source={{ uri: base64Images.cross }}
|
|
81
75
|
style={{ width: 14, height: 14 }}
|
|
@@ -85,11 +79,10 @@ const PendingFDBottomSheet: React.FC<PendingFDBottomSheetProps> = ({
|
|
|
85
79
|
</View>
|
|
86
80
|
</View>
|
|
87
81
|
|
|
88
|
-
{/*
|
|
82
|
+
{/* Content */}
|
|
89
83
|
<View style={styles.content}>
|
|
90
84
|
<Text style={styles.sectionTitle}>Pending FDs</Text>
|
|
91
85
|
|
|
92
|
-
{/* Active FD Card */}
|
|
93
86
|
<ActiveFDCard
|
|
94
87
|
name={pendingFDData.name}
|
|
95
88
|
invested={pendingFDData.invested}
|
|
@@ -99,9 +92,14 @@ const PendingFDBottomSheet: React.FC<PendingFDBottomSheetProps> = ({
|
|
|
99
92
|
logoType={pendingFDData.logoType}
|
|
100
93
|
/>
|
|
101
94
|
|
|
102
|
-
{
|
|
95
|
+
<View style={{ height: 24 }} />
|
|
96
|
+
|
|
97
|
+
{/* Book New */}
|
|
103
98
|
<TouchableOpacity
|
|
104
|
-
style={[
|
|
99
|
+
style={[
|
|
100
|
+
styles.bookNewButton,
|
|
101
|
+
isBookingNewLoading && styles.disabledButton,
|
|
102
|
+
]}
|
|
105
103
|
onPress={onBookNew}
|
|
106
104
|
disabled={isBookingNewLoading}
|
|
107
105
|
>
|
|
@@ -119,21 +117,21 @@ const PendingFDBottomSheet: React.FC<PendingFDBottomSheetProps> = ({
|
|
|
119
117
|
)}
|
|
120
118
|
</TouchableOpacity>
|
|
121
119
|
|
|
122
|
-
{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
onPress={onContinue}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
120
|
+
{/* Footer */}
|
|
121
|
+
<View style={styles.footer}>
|
|
122
|
+
{themeName === 'dark' ? (
|
|
123
|
+
<ActionButton
|
|
124
|
+
title="Continue"
|
|
125
|
+
onPress={onContinue}
|
|
126
|
+
variant="primary"
|
|
127
|
+
style={styles.continueButtonWrapper}
|
|
128
|
+
/>
|
|
129
|
+
) : (
|
|
130
|
+
<TouchableOpacity style={styles.continueButton} onPress={onContinue}>
|
|
131
|
+
<Text style={styles.continueButtonText}>Continue</Text>
|
|
132
|
+
</TouchableOpacity>
|
|
133
|
+
)}
|
|
134
|
+
</View>
|
|
137
135
|
</View>
|
|
138
136
|
</SafeAreaView>
|
|
139
137
|
</View>
|
|
@@ -142,96 +140,126 @@ const PendingFDBottomSheet: React.FC<PendingFDBottomSheetProps> = ({
|
|
|
142
140
|
);
|
|
143
141
|
};
|
|
144
142
|
|
|
145
|
-
const createStyles = (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
143
|
+
const createStyles = (
|
|
144
|
+
colors: ColorScheme,
|
|
145
|
+
typography: any,
|
|
146
|
+
spacing: any,
|
|
147
|
+
themeName: string
|
|
148
|
+
) =>
|
|
149
|
+
StyleSheet.create({
|
|
150
|
+
overlay: {
|
|
151
|
+
flex: 1,
|
|
152
|
+
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
153
|
+
justifyContent: 'flex-end',
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
bottomSheet: {
|
|
157
|
+
padding: spacing.sm,
|
|
158
|
+
backgroundColor: themeName === 'dark' ? colors.background : 'white',
|
|
159
|
+
borderTopLeftRadius: 20,
|
|
160
|
+
borderTopRightRadius: 20,
|
|
161
|
+
borderWidth: themeName === 'dark' ? 1 : 0,
|
|
162
|
+
borderColor: themeName === 'dark' ? '#ffffff' : 'transparent',
|
|
163
|
+
maxHeight: Dimensions.get('window').height * 0.8,
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
header: {
|
|
167
|
+
paddingHorizontal: spacing.lg,
|
|
168
|
+
paddingTop: spacing.md,
|
|
169
|
+
paddingBottom: spacing.sm,
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
headerContent: {
|
|
173
|
+
flexDirection: 'row',
|
|
174
|
+
justifyContent: 'space-between',
|
|
175
|
+
alignItems: 'flex-start',
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
title: {
|
|
179
|
+
fontSize: 15,
|
|
180
|
+
fontWeight: '500',
|
|
181
|
+
color: themeName === 'dark' ? colors.labelColor : '#333',
|
|
182
|
+
flex: 1,
|
|
183
|
+
marginRight: spacing.md,
|
|
184
|
+
lineHeight: 24,
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
closeButton: {
|
|
188
|
+
width: 32,
|
|
189
|
+
height: 32,
|
|
190
|
+
borderRadius: 16,
|
|
191
|
+
backgroundColor: '#f5f5f5',
|
|
192
|
+
justifyContent: 'center',
|
|
193
|
+
alignItems: 'center',
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
content: {
|
|
197
|
+
paddingHorizontal: spacing.lg,
|
|
198
|
+
paddingTop: spacing.lg,
|
|
199
|
+
paddingBottom: Platform.OS === 'ios' ? 20 : spacing.lg,
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
sectionTitle: {
|
|
203
|
+
...typography.styles.h4,
|
|
204
|
+
color: themeName === 'dark' ? colors.labelColor : '#333',
|
|
205
|
+
marginBottom: spacing.md,
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
bookNewButton: {
|
|
209
|
+
marginTop: spacing.xl,
|
|
210
|
+
marginBottom: spacing.xl,
|
|
211
|
+
alignItems: 'center',
|
|
212
|
+
justifyContent: 'center',
|
|
213
|
+
paddingVertical: 12,
|
|
214
|
+
paddingHorizontal: spacing.lg,
|
|
215
|
+
borderWidth: 1,
|
|
216
|
+
borderColor: themeName === 'dark' ? colors.labelColor : '#333',
|
|
217
|
+
borderRadius: themeName === 'dark' ? 10 : 30,
|
|
218
|
+
width: 330,
|
|
219
|
+
alignSelf: 'center',
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
bookNewText: {
|
|
223
|
+
...typography.styles.buttonSmall,
|
|
224
|
+
color: themeName === 'dark' ? colors.labelColor : '#000',
|
|
225
|
+
// fontWeight: '500',
|
|
226
|
+
// fontSize: 14,
|
|
227
|
+
// fontFamily: 'poppins.medium',
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
disabledButton: {
|
|
231
|
+
opacity: 0.6,
|
|
232
|
+
},
|
|
233
|
+
|
|
234
|
+
loadingContainer: {
|
|
235
|
+
flexDirection: 'row',
|
|
236
|
+
alignItems: 'center',
|
|
237
|
+
justifyContent: 'center',
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
footer: {
|
|
241
|
+
paddingTop: spacing.sm,
|
|
242
|
+
},
|
|
243
|
+
|
|
244
|
+
continueButtonWrapper: {
|
|
245
|
+
marginBottom: Platform.OS === 'ios' ? spacing.lg + 20 : spacing.lg,
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
continueButton: {
|
|
249
|
+
height: 50,
|
|
250
|
+
backgroundColor: '#007AFF',
|
|
251
|
+
borderRadius: 25,
|
|
252
|
+
alignItems: 'center',
|
|
253
|
+
justifyContent: 'center',
|
|
254
|
+
marginBottom: Platform.OS === 'ios' ? spacing.lg + 20 : spacing.lg,
|
|
255
|
+
},
|
|
256
|
+
|
|
257
|
+
continueButtonText: {
|
|
258
|
+
...typography.styles.button,
|
|
259
|
+
color: '#fff',
|
|
260
|
+
fontWeight: '600',
|
|
261
|
+
fontSize: 16,
|
|
262
|
+
},
|
|
263
|
+
});
|
|
236
264
|
|
|
237
|
-
export default PendingFDBottomSheet;
|
|
265
|
+
export default PendingFDBottomSheet;
|