fix & featur

deskripsi:
- fix component stack dan drawer
- new page list path profile
This commit is contained in:
2025-07-09 17:22:43 +08:00
parent bfb029058c
commit ee7efaef6a
12 changed files with 199 additions and 83 deletions

View File

@@ -31,8 +31,8 @@ export default function LoginView() {
console.log("login user id :", id);
// router.navigate("/verification");
router.navigate(`/(application)/(user)/profile/${id}`);
// router.navigate("/(application)/home");
// router.navigate(`/(application)/(user)/profile/${id}`);
router.navigate("/(application)/(user)/home");
// router.navigate(`/(application)/profile/${id}/edit`);
}

View File

@@ -0,0 +1,35 @@
import { IMenuDrawerItem } from "@/components/_Interface/types";
export const drawerItems = ({ id }: { id: string }): IMenuDrawerItem[] => [
{
icon: "create",
label: "Edit profile",
path: `/(application)/profile/${id}/edit`,
},
{
icon: "camera",
label: "Ubah foto profile",
path: `/(application)/profile/${id}/update-photo`,
},
{
icon: "image",
label: "Ubah latar belakang",
path: `/(application)/profile/${id}/update-background`,
},
{
icon: "add-circle",
label: "Tambah portofolio",
path: `/(application)/portofolio/${id}/create`,
},
// {
// icon: "settings",
// label: "Dashboard Admin",
// path: `/(application)/profile/dashboard-admin`,
// },
{ icon: "log-out", label: "Keluar", color: "red", path: "" },
{
icon: "create-outline",
label: "Create profile",
path: `/(application)/profile/${id}/create`,
},
];