@opexa/portal-components 0.0.1045 → 0.0.1046
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/components/SignIn/MobileNumberSignIn.js +2 -1
- package/dist/components/SignIn/NameAndPasswordSignIn.js +2 -1
- package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +5 -5
- package/dist/components/SignUp/SignUpNameAndPassword/SignUpNameAndPasswordForm.js +2 -1
- package/package.json +1 -1
|
@@ -50,6 +50,7 @@ export function MobileNumberSignIn() {
|
|
|
50
50
|
kyc: ctx.kyc,
|
|
51
51
|
registerBiometrics: ctx.registerBiometrics,
|
|
52
52
|
disclaimer: ctx.disclaimer,
|
|
53
|
+
termsOfUse: ctx.termsOfUse,
|
|
53
54
|
})));
|
|
54
55
|
const signInMutation = useSignInMutation({
|
|
55
56
|
onSuccess: async () => {
|
|
@@ -229,7 +230,7 @@ export function MobileNumberSignIn() {
|
|
|
229
230
|
router.push(signInProps.termsAndConditionsUrl);
|
|
230
231
|
}
|
|
231
232
|
else {
|
|
232
|
-
globalStore.
|
|
233
|
+
globalStore.termsOfUse.setOpen(true);
|
|
233
234
|
globalStore.termsAndConditions.setNext('SIGN_IN');
|
|
234
235
|
}
|
|
235
236
|
}, children: "Terms of Use" }), ' ', "and", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
|
|
@@ -51,6 +51,7 @@ export function NameAndPasswordSignIn() {
|
|
|
51
51
|
responsibleGamingReminder: ctx.responsibleGamingReminder,
|
|
52
52
|
registerBiometrics: ctx.registerBiometrics,
|
|
53
53
|
disclaimer: ctx.disclaimer,
|
|
54
|
+
termsOfUse: ctx.termsOfUse,
|
|
54
55
|
})));
|
|
55
56
|
const [formType, setFormType] = useState('NAME_AND_PASSWORD');
|
|
56
57
|
const signInMutation = useSignInMutation({
|
|
@@ -312,7 +313,7 @@ export function NameAndPasswordSignIn() {
|
|
|
312
313
|
router.push(signInProps.termsAndConditionsUrl);
|
|
313
314
|
}
|
|
314
315
|
else {
|
|
315
|
-
globalStore.
|
|
316
|
+
globalStore.termsOfUse.setOpen(true);
|
|
316
317
|
globalStore.termsAndConditions.setNext('SIGN_IN');
|
|
317
318
|
}
|
|
318
319
|
}, children: "Terms of Use" }), ' ', "and", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
|
|
@@ -60,6 +60,7 @@ export function SignUpDefaultForm() {
|
|
|
60
60
|
termsAndConditions: ctx.termsAndConditions,
|
|
61
61
|
responsibleGaming: ctx.responsibleGaming,
|
|
62
62
|
kyc: ctx.kyc,
|
|
63
|
+
termsOfUse: ctx.termsOfUse,
|
|
63
64
|
})));
|
|
64
65
|
const search = useSearchParams();
|
|
65
66
|
const signUpMutation = useSignUpMutation();
|
|
@@ -90,9 +91,7 @@ export function SignUpDefaultForm() {
|
|
|
90
91
|
.refine((val) => val.length <= 50, {
|
|
91
92
|
message: 'Last name must not be more than 50 characters',
|
|
92
93
|
});
|
|
93
|
-
const birthdateBaseSchema = z
|
|
94
|
-
.custom()
|
|
95
|
-
.superRefine((val, ctx) => {
|
|
94
|
+
const birthdateBaseSchema = z.custom().superRefine((val, ctx) => {
|
|
96
95
|
if (!(val instanceof Date)) {
|
|
97
96
|
ctx.addIssue({
|
|
98
97
|
code: z.ZodIssueCode.custom,
|
|
@@ -272,7 +271,7 @@ export function SignUpDefaultForm() {
|
|
|
272
271
|
router.push(signUpProps.termsAndConditionsUrl);
|
|
273
272
|
}
|
|
274
273
|
else {
|
|
275
|
-
globalStore.
|
|
274
|
+
globalStore.termsOfUse.setOpen(true);
|
|
276
275
|
globalStore.termsAndConditions.setNext('SIGN_UP');
|
|
277
276
|
}
|
|
278
277
|
}, children: "Terms and Conditions" }), ' ', "and", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", onClick: () => {
|
|
@@ -303,7 +302,8 @@ export function SignUpDefaultForm() {
|
|
|
303
302
|
}),
|
|
304
303
|
...(signUpProps?.branches &&
|
|
305
304
|
signUpProps.branches.length > 0 && {
|
|
306
|
-
branchCode: signUpProps.branches.find((b) => itemToValue(b) ===
|
|
305
|
+
branchCode: signUpProps.branches.find((b) => itemToValue(b) ===
|
|
306
|
+
step1Form.getValues('branchCode'))?.code ?? step1Form.getValues('branchCode'),
|
|
307
307
|
}),
|
|
308
308
|
}),
|
|
309
309
|
...(signUpProps.showEmailAddressField && {
|
|
@@ -55,6 +55,7 @@ export function SignUpNameAndPasswordForm() {
|
|
|
55
55
|
termsAndConditions: ctx.termsAndConditions,
|
|
56
56
|
responsibleGaming: ctx.responsibleGaming,
|
|
57
57
|
kyc: ctx.kyc,
|
|
58
|
+
termsOfUse: ctx.termsOfUse,
|
|
58
59
|
})));
|
|
59
60
|
const definition = z.object({
|
|
60
61
|
name: z
|
|
@@ -211,7 +212,7 @@ export function SignUpNameAndPasswordForm() {
|
|
|
211
212
|
router.push(signUpProps.termsAndConditionsUrl);
|
|
212
213
|
}
|
|
213
214
|
else {
|
|
214
|
-
globalStore.
|
|
215
|
+
globalStore.termsOfUse.setOpen(true);
|
|
215
216
|
globalStore.termsAndConditions.setNext('SIGN_UP');
|
|
216
217
|
globalStore.signUp.setOpen(false);
|
|
217
218
|
}
|