@opexa/portal-components 0.0.572 → 0.0.573
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.
|
@@ -35,10 +35,12 @@ import { Select } from '../../../ui/Select/index.js';
|
|
|
35
35
|
import { Tooltip } from '../../../ui/Tooltip/index.js';
|
|
36
36
|
import { createPoll } from '../../../utils/createPoll.js';
|
|
37
37
|
import { useSignUpNameAndPasswordPropsContext } from './SignUpNameAndPasswordContext.js';
|
|
38
|
+
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
38
39
|
export function SignUpNameAndPasswordForm() {
|
|
39
40
|
const signUpProps = useSignUpNameAndPasswordPropsContext();
|
|
40
41
|
const signInMutation = useSignInMutation();
|
|
41
42
|
const signUpMutation = useSignUpByNameMutation();
|
|
43
|
+
const featureFlag = useFeatureFlag();
|
|
42
44
|
const branchCollection = createListCollection({
|
|
43
45
|
items: signUpProps.branches ?? [],
|
|
44
46
|
itemToValue: (item) => item.code,
|
|
@@ -164,7 +166,12 @@ export function SignUpNameAndPasswordForm() {
|
|
|
164
166
|
return;
|
|
165
167
|
}
|
|
166
168
|
globalStore.signUp.setOpen(false);
|
|
167
|
-
|
|
169
|
+
if (!featureFlag.enabled) {
|
|
170
|
+
globalStore.kyc.setOpen(true);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
globalStore.kycReminder.setOpen(true);
|
|
174
|
+
}
|
|
168
175
|
form.reset();
|
|
169
176
|
}
|
|
170
177
|
catch (error) {
|