Add:
- app/(application)/(admin)/

## No Issue
This commit is contained in:
2025-08-05 12:11:25 +08:00
parent e16b0c2fce
commit 48c34aa26c
8 changed files with 91 additions and 9 deletions

View File

@@ -0,0 +1,43 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { AccentColor, MainColor } from "@/constants/color-palet";
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
import { GStyles } from "@/styles/global-styles";
import { FontAwesome6, Ionicons } from "@expo/vector-icons";
import { Stack } from "expo-router";
import { useState } from "react";
export default function AdminLayout() {
const [openDrawer, setOpenDrawer] = useState(false);
return (
<>
<Stack
screenOptions={{
headerStyle: GStyles.headerStyle,
headerTitleStyle: GStyles.headerTitleStyle,
headerTitleAlign: "center",
contentStyle: {
borderBottomColor: AccentColor.blue,
},
headerLeft: () => (
<Ionicons
name="menu"
size={ICON_SIZE_SMALL}
color={MainColor.white}
/>
),
headerRight: () => (
<FontAwesome6
name="circle-user"
size={ICON_SIZE_SMALL}
color={MainColor.white}
/>
),
}}
>
<Stack.Screen name="dashboard" options={{ title: "Dashboard" }} />
<Stack.Screen name="maps" options={{ title: "Maps" }} />
<Stack.Screen name="information" options={{ title: "Information" }} />
</Stack>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Text } from "react-native";
export default function AdminDashboard() {
return (
<>
<Text>Dashboard</Text>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Text } from "react-native";
export default function AdminInformation() {
return (
<>
<Text>Information</Text>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { Text } from "react-native";
export default function AdminMaps() {
return (
<>
<Text>Maps</Text>
</>
);
}

View File

@@ -7,6 +7,7 @@ export default function ApplicationLayout() {
<>
<Stack screenOptions={HeaderStyles}>
<Stack.Screen name="(user)" options={{ headerShown: false }} />
<Stack.Screen name="(admin)" options={{ headerShown: false }} />
{/* Take Picture */}
<Stack.Screen