simpan
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -25,6 +25,9 @@ npm-debug.log*
|
|||||||
rn-debug.log*
|
rn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
# env
|
||||||
|
.env
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
.env*.local
|
.env*.local
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function Validasi({ dataOtp }: { dataOtp: any }) {
|
|||||||
if (res.role === "1") {
|
if (res.role === "1") {
|
||||||
ComponentGlobal_NotifikasiBerhasil(res.message);
|
ComponentGlobal_NotifikasiBerhasil(res.message);
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
router.push(RouterHome.main_home, {scroll: false});
|
router.push(RouterHome.main_home, { scroll: false });
|
||||||
} else {
|
} else {
|
||||||
router.push(RouterAdminDashboard.splash_admin);
|
router.push(RouterAdminDashboard.splash_admin);
|
||||||
}
|
}
|
||||||
@@ -102,6 +102,7 @@ export default function Validasi({ dataOtp }: { dataOtp: any }) {
|
|||||||
</Text>
|
</Text>
|
||||||
<Center>
|
<Center>
|
||||||
<PinInput
|
<PinInput
|
||||||
|
type={"number"}
|
||||||
ref={focusTrapRef}
|
ref={focusTrapRef}
|
||||||
spacing={"md"}
|
spacing={"md"}
|
||||||
mt={"md"}
|
mt={"md"}
|
||||||
|
|||||||
@@ -303,7 +303,8 @@ function ButtonAction({
|
|||||||
if (res.status === 201) {
|
if (res.status === 201) {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
ComponentGlobal_NotifikasiBerhasil("Berhasil Membuat Profile", 3000);
|
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 {
|
} else {
|
||||||
ComponentGlobal_NotifikasiGagal(res.message);
|
ComponentGlobal_NotifikasiGagal(res.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user