diff --git a/src/app/(application)/profile/page.tsx b/src/app/(application)/profile/page.tsx new file mode 100644 index 0000000..2c27402 --- /dev/null +++ b/src/app/(application)/profile/page.tsx @@ -0,0 +1,9 @@ +import { ViewProfile } from "@/module/user"; + +function Page() { + return ( + + ) +} + +export default Page; \ No newline at end of file diff --git a/src/module/auth/login/view/view_login.tsx b/src/module/auth/login/view/view_login.tsx index 19490b0..9e03589 100644 --- a/src/module/auth/login/view/view_login.tsx +++ b/src/module/auth/login/view/view_login.tsx @@ -20,7 +20,8 @@ function ViewLogin() { "Kami akan mengirim kode verifikasi melalui WhatsApp, guna mengonfirmasikan nomor Anda."; function onMasuk() { - router.push("/verification") + // router.push("/verification") + window.location.href = "/verification" } return ( diff --git a/src/module/auth/varification/view/view_verification.tsx b/src/module/auth/varification/view/view_verification.tsx index 0c823fb..7585341 100644 --- a/src/module/auth/varification/view/view_verification.tsx +++ b/src/module/auth/varification/view/view_verification.tsx @@ -8,7 +8,8 @@ export default function ViewVerification() { const router = useRouter(); function onNext() { - router.push("/welcome"); + // router.push("/welcome"); + window.location.href = "/welcome" } return ( <> diff --git a/src/module/auth/welcome/view_welcome.tsx b/src/module/auth/welcome/view_welcome.tsx index 5c6503c..0d43a30 100644 --- a/src/module/auth/welcome/view_welcome.tsx +++ b/src/module/auth/welcome/view_welcome.tsx @@ -37,7 +37,8 @@ export function ViewWelcome() { function onLanjutkan() { if (index === listTextWellcome.length - 1) { - return router.push("/home"); + // return router.push("/home"); + return window.location.href = "/home" } setIndex(index + 1); } diff --git a/src/module/home/components/carosole.tsx b/src/module/home/components/carosole.tsx index 4954f1a..85146db 100644 --- a/src/module/home/components/carosole.tsx +++ b/src/module/home/components/carosole.tsx @@ -1,3 +1,4 @@ +'use client' import React, { useRef } from 'react'; import { Carousel } from '@mantine/carousel'; import { WARNA } from '@/module/_global'; diff --git a/src/module/home/components/features.tsx b/src/module/home/components/features.tsx index cc32e84..d6b584e 100644 --- a/src/module/home/components/features.tsx +++ b/src/module/home/components/features.tsx @@ -1,3 +1,4 @@ +'use client' import { WARNA } from '@/module/_global'; import { ActionIcon, Box, Center, Grid, SimpleGrid, Text } from '@mantine/core'; import { useRouter } from 'next/navigation'; diff --git a/src/module/home/view/view_home.tsx b/src/module/home/view/view_home.tsx index b0f7766..52c3376 100644 --- a/src/module/home/view/view_home.tsx +++ b/src/module/home/view/view_home.tsx @@ -1,4 +1,3 @@ -"use client" import { LayoutNavbarHome, WARNA } from '@/module/_global'; import { ActionIcon, Box, Group, rem, Stack, Text } from '@mantine/core'; import React from 'react'; @@ -10,26 +9,26 @@ import Features from '../components/features'; export default function ViewHome() { return ( <> - - - Perbekal Darmasaba - - - - - - - - - - - + + + Perbekal Darmasaba + + + + + + + + + + - + + - + diff --git a/src/module/user/index.ts b/src/module/user/index.ts index e69de29..0cd1556 100644 --- a/src/module/user/index.ts +++ b/src/module/user/index.ts @@ -0,0 +1,3 @@ +import ViewProfile from "./profile/view/view_profile"; + +export { ViewProfile } \ No newline at end of file diff --git a/src/module/user/profile/index.ts b/src/module/user/profile/index.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/module/user/profile/view/view_profile.tsx b/src/module/user/profile/view/view_profile.tsx new file mode 100644 index 0000000..2c59e62 --- /dev/null +++ b/src/module/user/profile/view/view_profile.tsx @@ -0,0 +1,29 @@ +import { LayoutNavbarHome, WARNA } from "@/module/_global"; +import { ActionIcon, Group, Stack, Text } from "@mantine/core"; +import { BsInfo } from "react-icons/bs"; +import { HiUser } from "react-icons/hi2"; + +export default function ViewProfile() { + return ( + <> + + + Profile + + + + + + + + Fibra Marcell + Kepala Urusan Pengembangan + + + + ) +} \ No newline at end of file