fix folder component

This commit is contained in:
2025-07-02 12:20:42 +08:00
parent 23ae416f42
commit 9667065bb3
9 changed files with 33 additions and 17 deletions

View File

@@ -5,18 +5,21 @@ import { router } from "expo-router";
export default function Profile_MenuDrawerSection({
drawerItems,
setShowLogoutAlert,
setIsDrawerOpen,
}: {
drawerItems: IMenuDrawerItem[];
setShowLogoutAlert: (value: boolean) => void;
setIsDrawerOpen: (value: boolean) => void;
}) {
const handlePress = (item: IMenuDrawerItem) => {
if (item.label === "Keluar") {
// console.log("Logout clicked");
// console.log("Logout clicked");
setShowLogoutAlert(true);
} else {
console.log("PATH >> ",item.path);
console.log("PATH >> ", item.path);
router.push(item.path as any);
}
setIsDrawerOpen(false);
};
return (