fix folder

deskripsi:
- pindah folder portofolio ke (user)
This commit is contained in:
2025-07-08 12:11:35 +08:00
parent b80968999e
commit 55b4b1fa8d
5 changed files with 14 additions and 11 deletions

View File

@@ -95,6 +95,14 @@ export default function UserLayout() {
headerLeft: () => <BackButton />,
}}
/>
{/* Portofolio */}
<Stack.Screen
name="portofolio"
options={{
headerShown: false,
}}
/>
</Stack>
</>
);

View File

@@ -0,0 +1,11 @@
import { TextCustom, ViewWrapper } from "@/components";
import { useLocalSearchParams } from "expo-router";
export default function PortofolioCreate() {
const { id } = useLocalSearchParams();
return (
<ViewWrapper>
<TextCustom>Portofolio Create {id}</TextCustom>
</ViewWrapper>
);
}

View File

@@ -0,0 +1,32 @@
import LeftButtonCustom from "@/components/Button/BackButton";
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
import { GStyles } from "@/styles/global-styles";
import { Stack, useLocalSearchParams } from "expo-router";
import { Text } from "react-native";
export default function Portofolio() {
const { id } = useLocalSearchParams();
return (
<ViewWrapper>
{/* Header */}
<Stack.Screen
options={{
title: "Portofolio",
headerLeft: () => <LeftButtonCustom />,
// headerRight: () => (
// <TouchableOpacity onPress={openDrawer}>
// <Ionicons
// name="ellipsis-vertical"
// size={20}
// color={MainColor.yellow}
// />
// </TouchableOpacity>
// ),
headerStyle: GStyles.headerStyle,
headerTitleStyle: GStyles.headerTitleStyle,
}}
/>
<Text style={GStyles.textLabel}>Portofolio {id}</Text>
</ViewWrapper>
);
}

View File

@@ -0,0 +1,27 @@
import LeftButtonCustom from "@/components/Button/BackButton";
import { GStyles } from "@/styles/global-styles";
import { Stack } from "expo-router";
export default function PortofolioLayout() {
return (
<>
<Stack
screenOptions={{
headerStyle: GStyles.headerStyle,
headerTitleStyle: GStyles.headerTitleStyle,
headerTitleAlign: "center",
headerBackButtonDisplayMode: "minimal",
headerLeft: () => <LeftButtonCustom />,
}}
>
{/* <Stack.Screen name="[id]/index" options={{ title: "Portofolio" }} /> */}
<Stack.Screen
name="[id]/create"
options={{ title: "Tambah Portofolio" }}
/>
</Stack>
</>
);
}