Admin
Add: - app/(application)/(admin)/ ## No Issue
This commit is contained in:
@@ -30,9 +30,9 @@ export default function LoginView() {
|
||||
const id = randomAlfabet + randomNumber + fixNumber;
|
||||
console.log("login user id :", id);
|
||||
|
||||
router.navigate("/verification");
|
||||
// router.navigate("/verification");
|
||||
// router.navigate(`/(application)/(user)/profile/${id}`);
|
||||
// router.navigate("/(application)/(user)/home");
|
||||
router.navigate("/(application)/(user)/home");
|
||||
// router.navigate(`/(application)/profile/${id}/edit`);
|
||||
// router.navigate(`/(application)/(user)/portofolio/${id}`)
|
||||
// router.navigate(`/(application)/(image)/preview-image/${id}`);
|
||||
|
||||
@@ -52,11 +52,17 @@ export const drawerItemsProfile = ({
|
||||
label: "Tambah portofolio",
|
||||
path: `/(application)/portofolio/${id}/create`,
|
||||
},
|
||||
// {
|
||||
// icon: "settings",
|
||||
// label: "Dashboard Admin",
|
||||
// path: `/(application)/profile/dashboard-admin`,
|
||||
// },
|
||||
{
|
||||
icon: (
|
||||
<Ionicons
|
||||
name="settings"
|
||||
size={ICON_SIZE_MEDIUM}
|
||||
color={AccentColor.white}
|
||||
/>
|
||||
),
|
||||
label: "Dashboard Admin",
|
||||
path: `/(application)/(admin)/dashboard`,
|
||||
},
|
||||
{
|
||||
icon: (
|
||||
<Ionicons
|
||||
|
||||
@@ -26,9 +26,14 @@ export default function Profile_MenuDrawerSection({
|
||||
<>
|
||||
{/* Menu Items */}
|
||||
<MenuDrawerDynamicGrid
|
||||
data={drawerItems}
|
||||
data={drawerItems.map((item) => ({
|
||||
icon: item.icon,
|
||||
label: item.label,
|
||||
path: item.path as any,
|
||||
color: item.color,
|
||||
}))}
|
||||
columns={4} // Ubah ke 2 jika ingin 2 kolom per baris
|
||||
onPressItem={handlePress}
|
||||
onPressItem={(item) => handlePress(item as any)}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user