-deskripsi:
- fix folder: map, marketplace, forum ke (user)
This commit is contained in:
2025-07-08 12:04:51 +08:00
parent 6bac89c536
commit b80968999e
8 changed files with 56 additions and 61 deletions

View File

@@ -68,6 +68,33 @@ export default function UserLayout() {
headerLeft: () => <LeftButtonCustom />,
}}
/>
{/* Forum */}
<Stack.Screen
name="forum/index"
options={{
title: "Forum",
headerLeft: () => <BackButton />,
}}
/>
{/* Maps */}
<Stack.Screen
name="maps/index"
options={{
title: "Maps",
headerLeft: () => <BackButton />,
}}
/>
{/* Marketplace */}
<Stack.Screen
name="marketplace/index"
options={{
title: "Market Place",
headerLeft: () => <BackButton />,
}}
/>
</Stack>
</>
);

View File

@@ -0,0 +1,11 @@
import { TextCustom, ViewWrapper } from "@/components";
export default function Forum() {
return (
<>
<ViewWrapper>
<TextCustom>Forum</TextCustom>
</ViewWrapper>
</>
);
}

View File

@@ -0,0 +1,9 @@
import { TextCustom, ViewWrapper } from "@/components";
export default function Maps() {
return (
<ViewWrapper>
<TextCustom>Maps</TextCustom>
</ViewWrapper>
)
}

View File

@@ -0,0 +1,9 @@
import { TextCustom, ViewWrapper } from "@/components";
export default function Marketplace() {
return (
<ViewWrapper>
<TextCustom>Marketplace</TextCustom>
</ViewWrapper>
);
}

View File

@@ -1,4 +1,3 @@
import { BackButton } from "@/components";
import { MainColor } from "@/constants/color-palet";
import { HeaderStyles } from "@/styles/header-styles";
import { Ionicons } from "@expo/vector-icons";
@@ -10,37 +9,6 @@ export default function ApplicationLayout() {
<Stack screenOptions={HeaderStyles}>
<Stack.Screen name="(user)" options={{ headerShown: false }} />
<Stack.Screen
name="forum/index"
options={{
title: "Forum",
headerLeft: () => <BackButton />,
}}
/>
<Stack.Screen
name="maps/index"
options={{
title: "Maps",
headerLeft: () => <BackButton />,
}}
/>
<Stack.Screen
name="marketplace/index"
options={{
title: "Market Place",
headerLeft: () => (
<Ionicons
name="arrow-back"
size={20}
color={MainColor.yellow}
onPress={() => router.back()}
/>
),
}}
/>
{/* Profile */}
<Stack.Screen
name="profile"

View File

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

View File

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

View File

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