@opexa/portal-components 0.0.294 → 0.0.296
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/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -0
- package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.d.ts +1 -1
- package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +9 -10
- package/dist/components/SignUp/SignUpKYC/SignUpKYC.lazy.d.ts +1 -1
- package/dist/components/SignUp/SignUpKYC/SignUpKYCForm.js +8 -11
- package/package.json +1 -1
|
@@ -29,6 +29,9 @@ export const useCheckInDailyCheckInQuestMutation = (config) => {
|
|
|
29
29
|
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
30
30
|
lastCheckInDate: new Date().toISOString(),
|
|
31
31
|
progressPercentage: progressPercentage.toFixed(2),
|
|
32
|
+
checkInStreak: quest.checkInStreak
|
|
33
|
+
? quest.checkInStreak + 1
|
|
34
|
+
: 1,
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
return quest;
|
|
@@ -20,7 +20,6 @@ import { useSignInMutation } from '../../../client/hooks/useSignInMutation.js';
|
|
|
20
20
|
import { useSignUpMutation } from '../../../client/hooks/useSignUpMutation.js';
|
|
21
21
|
import { useUpdateAccountMutation } from '../../../client/hooks/useUpdateAccountMutation.js';
|
|
22
22
|
import { toaster } from '../../../client/utils/toaster.js';
|
|
23
|
-
import { BRANCHES } from '../../../constants/index.js';
|
|
24
23
|
import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
|
|
25
24
|
import { CalendarIcon } from '../../../icons/CalendarIcon.js';
|
|
26
25
|
import { CheckIcon } from '../../../icons/CheckIcon.js';
|
|
@@ -41,7 +40,7 @@ import { useSignUpDefaultPropsContext } from './SignUpDefaultContext.js';
|
|
|
41
40
|
export function SignUpDefaultForm() {
|
|
42
41
|
const signUpProps = useSignUpDefaultPropsContext();
|
|
43
42
|
const branchCollection = createListCollection({
|
|
44
|
-
items: signUpProps.branches
|
|
43
|
+
items: signUpProps.branches,
|
|
45
44
|
itemToValue: (item) => item.code,
|
|
46
45
|
itemToString: (item) => `${item.code} - ${item.name}`,
|
|
47
46
|
});
|
|
@@ -123,7 +122,9 @@ export function SignUpDefaultForm() {
|
|
|
123
122
|
defaultValues: {
|
|
124
123
|
realName: '',
|
|
125
124
|
mobileNumber: '',
|
|
126
|
-
branchCode: signUpProps?.branches?.
|
|
125
|
+
branchCode: signUpProps?.branches?.length
|
|
126
|
+
? signUpProps.branches[0]?.code
|
|
127
|
+
: '',
|
|
127
128
|
termsAccepted: globalStore.responsibleGaming.accepted &&
|
|
128
129
|
globalStore.termsAndConditions.accepted
|
|
129
130
|
? true
|
|
@@ -159,7 +160,7 @@ export function SignUpDefaultForm() {
|
|
|
159
160
|
: 'Failed to send verification code',
|
|
160
161
|
});
|
|
161
162
|
}
|
|
162
|
-
}), children: [_jsxs(Field.Root, { invalid: !!step1Form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "absolute left-3.5 top-1/2 flex shrink-0 -translate-y-1/2 items-center
|
|
163
|
+
}), children: [_jsxs(Field.Root, { invalid: !!step1Form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "gap-md absolute left-3.5 top-1/2 flex shrink-0 -translate-y-1/2 items-center", children: [_jsx(localeInfo.country.flag, { className: "size-5" }), _jsx("span", { className: "text-text-placeholder", children: localeInfo.mobileNumber.areaCode })] }), _jsx(Field.Input, { style: {
|
|
163
164
|
paddingLeft: `calc(2.75rem + ${localeInfo.mobileNumber.areaCode.length}ch)`,
|
|
164
165
|
}, ...step1Form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.mobileNumber?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.realName, className: "mt-xl", children: [_jsx(Field.Label, { children: "Real Name" }), _jsx(Field.Input, { placeholder: "Enter your real name", ...step1Form.register('realName') }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.realName?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.birthDay, className: "mt-xl", children: [_jsx(DateOfBirthField, { value: birthDay, onChange: (value) => {
|
|
165
166
|
if (!value)
|
|
@@ -172,9 +173,7 @@ export function SignUpDefaultForm() {
|
|
|
172
173
|
}, onBlur: () => {
|
|
173
174
|
step1Form.trigger('birthDay');
|
|
174
175
|
} }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.birthDay?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.branchCode, className: "mt-xl", children: [_jsxs(Select.Root, { value: [branchCode], onValueChange: (details) => {
|
|
175
|
-
step1Form.setValue('branchCode', details.value
|
|
176
|
-
signUpProps?.branches?.[0]?.code ??
|
|
177
|
-
BRANCHES[0].code, {
|
|
176
|
+
step1Form.setValue('branchCode', details.value?.[0], {
|
|
178
177
|
shouldDirty: true,
|
|
179
178
|
shouldTouch: true,
|
|
180
179
|
shouldValidate: true,
|
|
@@ -213,7 +212,7 @@ export function SignUpDefaultForm() {
|
|
|
213
212
|
globalStore.responsibleGaming.setNext('SIGN_UP');
|
|
214
213
|
globalStore.signUp.setOpen(false);
|
|
215
214
|
}
|
|
216
|
-
}, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center
|
|
215
|
+
}, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), _jsxs("div", { className: "gap-xs mt-6 flex w-full items-center justify-center text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Already have an account?" }), _jsx("button", { type: "submit", className: "text-button-tertiary-fg font-semibold", onClick: () => {
|
|
217
216
|
globalStore.signUp.setOpen(false);
|
|
218
217
|
globalStore.signIn.setOpen(true);
|
|
219
218
|
}, children: "Log In" })] })] })), step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }), _jsxs("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
|
|
@@ -287,7 +286,7 @@ export function SignUpDefaultForm() {
|
|
|
287
286
|
o.field.onChange(details.value);
|
|
288
287
|
}, onValueComplete: () => {
|
|
289
288
|
form2Ref.current?.requestSubmit();
|
|
290
|
-
}, blurOnComplete: true, readOnly: step2Form.formState.isSubmitting, type: "numeric", children: [_jsxs(PinInput.Control, { className: "grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center
|
|
289
|
+
}, blurOnComplete: true, readOnly: step2Form.formState.isSubmitting, type: "numeric", children: [_jsxs(PinInput.Control, { className: "gap-md grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center", children: [_jsx(PinInput.Input, { index: 0 }), _jsx(PinInput.Input, { index: 1 }), _jsx(PinInput.Input, { index: 2 }), _jsx("span", { className: "text-text-placeholder-subtle text-2xl font-medium", children: "\u2013" }), _jsx(PinInput.Input, { index: 3 }), _jsx(PinInput.Input, { index: 4 }), _jsx(PinInput.Input, { index: 5 })] }), _jsx(PinInput.HiddenInput, {})] }), _jsx(Field.ErrorText, { children: o.formState.errors.verificationCode?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-4xl", disabled: step2Form.formState.isSubmitting, children: "Verify" }), _jsxs("div", { className: "gap-xs mt-3 flex w-full items-center justify-center text-sm", children: [_jsx("span", { className: "text-text-secondary-700", children: "Didn't recieve the code?" }), _jsx("button", { type: "button", className: "text-button-secondary-fg font-semibold disabled:cursor-not-allowed disabled:opacity-75", disabled: cooldown.cooling, onClick: async () => {
|
|
291
290
|
await sendVerificationCodeMutation.mutateAsync({
|
|
292
291
|
channel: 'SMS',
|
|
293
292
|
recipient: mobileNumberParser.format(step1Form.getValues('mobileNumber')),
|
|
@@ -295,7 +294,7 @@ export function SignUpDefaultForm() {
|
|
|
295
294
|
cooldown.start();
|
|
296
295
|
}, children: cooldown.cooling
|
|
297
296
|
? `Resend in ${cooldown.countdown}s`
|
|
298
|
-
: 'Resend' })] }), _jsxs("button", { type: "button", className: "text-text-tertiary-600 mx-auto
|
|
297
|
+
: 'Resend' })] }), _jsxs("button", { type: "button", className: "text-text-tertiary-600 mt-3xl mx-auto flex w-fit items-center gap-1 text-sm font-semibold", onClick: () => {
|
|
299
298
|
setStep(1);
|
|
300
299
|
step2Form.reset();
|
|
301
300
|
cooldown.stop();
|
|
@@ -26,7 +26,6 @@ import { useUpdateAccountMutation } from '../../../client/hooks/useUpdateAccount
|
|
|
26
26
|
import { useUpdateMemberVerificationMutation } from '../../../client/hooks/useUpdateMemberVerificationMutation.js';
|
|
27
27
|
import { useUploadImageFileMutation } from '../../../client/hooks/useUploadImageFileMutation.js';
|
|
28
28
|
import { toaster } from '../../../client/utils/toaster.js';
|
|
29
|
-
import { BRANCHES } from '../../../constants/index.js';
|
|
30
29
|
import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
|
|
31
30
|
import { CalendarIcon } from '../../../icons/CalendarIcon.js';
|
|
32
31
|
import { CheckIcon } from '../../../icons/CheckIcon.js';
|
|
@@ -54,7 +53,7 @@ import { useSignUpKYCPropsContext } from './SignUpKYCContext.js';
|
|
|
54
53
|
export function SignUpKYCForm() {
|
|
55
54
|
const props = useSignUpKYCPropsContext();
|
|
56
55
|
const branchCollection = createListCollection({
|
|
57
|
-
items: props.branches
|
|
56
|
+
items: props.branches,
|
|
58
57
|
itemToValue: (item) => item.code,
|
|
59
58
|
itemToString: (item) => `${item.code} - ${item.name}`,
|
|
60
59
|
});
|
|
@@ -171,7 +170,7 @@ export function SignUpKYCForm() {
|
|
|
171
170
|
firstName: '',
|
|
172
171
|
middleName: '',
|
|
173
172
|
lastName: '',
|
|
174
|
-
branchCode: props?.branches?.[0]?.code
|
|
173
|
+
branchCode: props?.branches?.length ? props.branches[0]?.code : '',
|
|
175
174
|
frontImage: undefined,
|
|
176
175
|
selfieImage: undefined,
|
|
177
176
|
termsAccepted: globalStore.responsibleGaming.accepted &&
|
|
@@ -239,7 +238,7 @@ export function SignUpKYCForm() {
|
|
|
239
238
|
: 'Failed to send verification code',
|
|
240
239
|
});
|
|
241
240
|
}
|
|
242
|
-
}), children: [_jsxs(Field.Root, { invalid: !!step1Form.formState.errors.name, className: "mt-xl", children: [_jsx(Field.Label, { children: "Account Username" }), _jsx(Field.Input, { placeholder: "Enter Username", ...step1Form.register('name') }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.name?.message })] }), _jsx(Field.Root, { invalid: !!step1Form.formState.errors.password, className: "mt-xl", children: _jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter your password", ...step1Form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.password?.message })] }) }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.mobileNumber, className: "mt-xl", children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "absolute left-3.5 top-1/2 flex shrink-0 -translate-y-1/2 items-center
|
|
241
|
+
}), children: [_jsxs(Field.Root, { invalid: !!step1Form.formState.errors.name, className: "mt-xl", children: [_jsx(Field.Label, { children: "Account Username" }), _jsx(Field.Input, { placeholder: "Enter Username", ...step1Form.register('name') }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.name?.message })] }), _jsx(Field.Root, { invalid: !!step1Form.formState.errors.password, className: "mt-xl", children: _jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter your password", ...step1Form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.password?.message })] }) }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.mobileNumber, className: "mt-xl", children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "gap-md absolute left-3.5 top-1/2 flex shrink-0 -translate-y-1/2 items-center", children: [_jsx(localeInfo.country.flag, { className: "size-5" }), _jsx("span", { className: "text-text-placeholder", children: localeInfo.mobileNumber.areaCode })] }), _jsx(Field.Input, { style: {
|
|
243
242
|
paddingLeft: `calc(2.75rem + ${localeInfo.mobileNumber.areaCode.length}ch)`,
|
|
244
243
|
}, ...step1Form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.mobileNumber?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.firstName, className: "mt-xl", children: [_jsx(Field.Label, { children: "First Name" }), _jsx(Field.Input, { placeholder: "Enter your First Name", ...step1Form.register('firstName') }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.firstName?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.middleName, className: "mt-xl", children: [_jsx(Field.Label, { children: "Middle Name" }), _jsx(Field.Input, { placeholder: "Enter your Middle Name", ...step1Form.register('middleName') }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.middleName?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.lastName, className: "mt-xl", children: [_jsx(Field.Label, { children: "Last Name" }), _jsx(Field.Input, { placeholder: "Enter your Last Name", ...step1Form.register('lastName') }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.lastName?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.birthDay, className: "mt-xl", children: [_jsx(DateOfBirthField, { value: birthDay, onChange: (value) => {
|
|
245
244
|
if (!value)
|
|
@@ -252,9 +251,7 @@ export function SignUpKYCForm() {
|
|
|
252
251
|
}, onBlur: () => {
|
|
253
252
|
step1Form.trigger('birthDay');
|
|
254
253
|
} }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.birthDay?.message })] }), _jsxs(Field.Root, { invalid: !!step1Form.formState.errors.branchCode, className: "mt-xl", children: [_jsxs(Select.Root, { value: [branchCode], onValueChange: (details) => {
|
|
255
|
-
step1Form.setValue('branchCode', details.value
|
|
256
|
-
props?.branches?.[0]?.code ??
|
|
257
|
-
BRANCHES[0].code, {
|
|
254
|
+
step1Form.setValue('branchCode', details.value?.[0], {
|
|
258
255
|
shouldDirty: true,
|
|
259
256
|
shouldTouch: true,
|
|
260
257
|
shouldValidate: true,
|
|
@@ -277,7 +274,7 @@ export function SignUpKYCForm() {
|
|
|
277
274
|
type: 'validate',
|
|
278
275
|
message: error.message,
|
|
279
276
|
});
|
|
280
|
-
} }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsxs("div", { className: "mt-xl text-center text-sm", children: ["Prohibition to play in open and public places", _jsxs("div", { className: "mt-5 flex items-center justify-center
|
|
277
|
+
} }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsxs("div", { className: "mt-xl text-center text-sm", children: ["Prohibition to play in open and public places", _jsxs("div", { className: "gap-3xl mt-5 flex items-center justify-center", children: [_jsx("div", { className: "size-5xl flex items-center justify-center overflow-hidden rounded-full bg-white", children: _jsx(Image, { src: pagcorLogo, alt: "", draggable: false, height: 62, width: 186, className: "h-9.5 w-auto object-contain" }) }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-10 w-auto", draggable: false })] })] }), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
|
|
281
278
|
if (details.checked === 'indeterminate')
|
|
282
279
|
return;
|
|
283
280
|
o.field.onChange(details.checked);
|
|
@@ -303,7 +300,7 @@ export function SignUpKYCForm() {
|
|
|
303
300
|
globalStore.responsibleGaming.setNext('SIGN_UP');
|
|
304
301
|
globalStore.signUp.setOpen(false);
|
|
305
302
|
}
|
|
306
|
-
}, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center
|
|
303
|
+
}, children: "Responsible Gaming" }), ' ', "guidelines."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsx(Field.ErrorText, { className: "ml-6 text-xs", children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" })] }), _jsxs("div", { className: "gap-xs mt-6 flex w-full items-center justify-center text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Already have an account?" }), _jsx("button", { type: "submit", className: "text-button-tertiary-fg font-semibold", onClick: () => {
|
|
307
304
|
dialog.setOpen(false);
|
|
308
305
|
globalStore.signIn.setOpen(true);
|
|
309
306
|
}, children: "Log In" })] })] })), step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }), _jsxs("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { ref: form2Ref, className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
|
|
@@ -438,7 +435,7 @@ export function SignUpKYCForm() {
|
|
|
438
435
|
o.field.onChange(details.value);
|
|
439
436
|
}, onValueComplete: () => {
|
|
440
437
|
form2Ref.current?.requestSubmit();
|
|
441
|
-
}, children: [_jsxs(PinInput.Control, { className: "grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center
|
|
438
|
+
}, children: [_jsxs(PinInput.Control, { className: "gap-md grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center", children: [_jsx(PinInput.Input, { index: 0 }), _jsx(PinInput.Input, { index: 1 }), _jsx(PinInput.Input, { index: 2 }), _jsx("span", { className: "text-text-placeholder-subtle text-2xl font-medium", children: "\u2013" }), _jsx(PinInput.Input, { index: 3 }), _jsx(PinInput.Input, { index: 4 }), _jsx(PinInput.Input, { index: 5 })] }), _jsx(PinInput.HiddenInput, {})] }), _jsx(Field.ErrorText, { children: o.formState.errors.verificationCode?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-4xl", disabled: step2Form.formState.isSubmitting, children: "Verify" }), _jsxs("div", { className: "gap-xs mt-3 flex w-full items-center justify-center text-sm", children: [_jsx("span", { className: "text-text-secondary-700", children: "Didn't recieve the code?" }), _jsx("button", { type: "button", className: "text-button-secondary-fg font-semibold disabled:cursor-not-allowed disabled:opacity-75", disabled: cooldown.cooling, onClick: async () => {
|
|
442
439
|
await sendVerificationCodeMutation.mutateAsync({
|
|
443
440
|
channel: 'SMS',
|
|
444
441
|
recipient: mobileNumberParser.format(step1Form.getValues('mobileNumber')),
|
|
@@ -446,7 +443,7 @@ export function SignUpKYCForm() {
|
|
|
446
443
|
cooldown.start();
|
|
447
444
|
}, children: cooldown.cooling
|
|
448
445
|
? `Resend in ${cooldown.countdown}s`
|
|
449
|
-
: 'Resend' })] }), _jsxs("button", { type: "button", className: "text-text-tertiary-600 mx-auto
|
|
446
|
+
: 'Resend' })] }), _jsxs("button", { type: "button", className: "text-text-tertiary-600 mt-3xl mx-auto flex w-fit items-center gap-1 text-sm font-semibold", onClick: () => {
|
|
450
447
|
setStep(1);
|
|
451
448
|
step2Form.reset();
|
|
452
449
|
cooldown.stop();
|