diff --git a/src/app/profile/page.tsx b/src/app/dashboard/profile/page.tsx similarity index 86% rename from src/app/profile/page.tsx rename to src/app/dashboard/profile/page.tsx index 4d16b9d..30693f7 100644 --- a/src/app/profile/page.tsx +++ b/src/app/dashboard/profile/page.tsx @@ -1,7 +1,11 @@ +"use client"; + import NextImage from "@/components/NextImage"; import Typography from "@/components/Typography"; +import withAuth from "@/components/hoc/withAuth"; -export default function Profile() { +export default withAuth(Profile, "user"); +function Profile() { return (
*/}
- ProfJustin + Username - profjustinjagobanget@gmail.com + email@gmail.com
@@ -45,7 +49,7 @@ export default function Profile() { Profile Information - Hi, I’m Prof Justin, Decisions: If you can’t decide, the answer is no. + Hi, I’m Prof Hello, Decisions: If you can’t decide, the answer is no. If two equally difficult paths, choose the one more painful in the short term (pain avoidance is creating an illusion of equality). @@ -53,7 +57,7 @@ export default function Profile() { Full Name : -  Prof Justin +  Prof Hello
@@ -68,7 +72,7 @@ export default function Profile() { Email : -  profjustinjagobanget@gmail.com +  profhello@gmail.com
@@ -76,7 +80,7 @@ export default function Profile() { Location : -  Surabay Nih Bos +  Surabaya Nih Bos
diff --git a/src/app/profile/layout.tsx b/src/app/profile/layout.tsx deleted file mode 100644 index 2f698bf..0000000 --- a/src/app/profile/layout.tsx +++ /dev/null @@ -1,47 +0,0 @@ -"use client"; -import Sidebar from "@/components/Sidebar"; -import { ReactNode } from "react"; -import { FaRegUser } from "react-icons/fa"; -import { FiFileText } from "react-icons/fi"; -import { IoHome } from "react-icons/io5"; -import { MdRocketLaunch } from "react-icons/md"; - -type ChildrenLayoutProps = { - children: ReactNode; -}; - -const NavbarLinks = [ - { - title: "Home", - icon: IoHome, - link: "/", - }, - { - title: "Profile", - icon: FaRegUser, - link: "/profile", - }, - { - title: "Tambah Ajuan", - icon: FiFileText, - link: "/ajuan", - }, - { - title: "Dashboard", - icon: MdRocketLaunch, - link: "/dashboard", - }, -]; - -const ChildrenLayout = ({ children }: ChildrenLayoutProps) => { - return ( -
- -
-
{children}
-
-
- ); -}; - -export default ChildrenLayout;