This commit is contained in:
2024-07-24 12:06:45 +08:00
parent 808a046167
commit 71d2275387
3 changed files with 7 additions and 2 deletions

3
.gitignore vendored
View File

@@ -25,6 +25,9 @@ npm-debug.log*
rn-debug.log*
yarn-error.log*
# env
.env
# local env files
.env*.local

View File

@@ -48,7 +48,7 @@ export default function Validasi({ dataOtp }: { dataOtp: any }) {
if (res.role === "1") {
ComponentGlobal_NotifikasiBerhasil(res.message);
setLoading(true);
router.push(RouterHome.main_home, {scroll: false});
router.push(RouterHome.main_home, { scroll: false });
} else {
router.push(RouterAdminDashboard.splash_admin);
}
@@ -102,6 +102,7 @@ export default function Validasi({ dataOtp }: { dataOtp: any }) {
</Text>
<Center>
<PinInput
type={"number"}
ref={focusTrapRef}
spacing={"md"}
mt={"md"}

View File

@@ -303,7 +303,8 @@ function ButtonAction({
if (res.status === 201) {
setLoading(true);
ComponentGlobal_NotifikasiBerhasil("Berhasil Membuat Profile", 3000);
setTimeout(() => router.push(RouterHome.main_home), 2000);
// setTimeout(() => router.push(RouterHome.main_home), 2000);
router.push(RouterHome.main_home);
} else {
ComponentGlobal_NotifikasiGagal(res.message);
}