Voting – User - app/(application)/(user)/voting/(tabs)/status.tsx - app/(application)/(user)/voting/create.tsx Screens – Voting - screens/Voting/ButtonStatusSection.tsx API Client - service/api-client/api-voting.ts Global - app/+not-found.tsx - styles/global-styles.ts Docs - docs/prompt-for-qwen-code.md Untracked (New Files) - screens/Voting/ScreenStatus.tsx ### No issue
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { BackButton, StackCustom, TextCustom, ViewWrapper } from "@/components";
|
|
import { router, Stack } from "expo-router";
|
|
|
|
export default function NotFoundScreen() {
|
|
// Setelah (dengan penanganan):
|
|
const handleBack = () => {
|
|
if (router.canGoBack()) {
|
|
router.back();
|
|
} else {
|
|
// Alternatif action ketika tidak bisa kembali
|
|
router.replace('/'); // atau navigasi ke halaman default
|
|
}
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<Stack.Screen
|
|
options={{ headerShown: true, title: "", headerLeft: () => <BackButton onPress={() => handleBack()} /> }}
|
|
/>
|
|
<ViewWrapper>
|
|
<StackCustom
|
|
align="center"
|
|
gap={0}
|
|
style={{ justifyContent: "center", alignItems: "center", flex: 1 }}
|
|
>
|
|
<TextCustom size="large" bold style={{ fontSize: 100 }}>
|
|
404
|
|
</TextCustom>
|
|
<TextCustom size="large" bold>
|
|
Sorry, Page Not Found
|
|
</TextCustom>
|
|
</StackCustom>
|
|
</ViewWrapper>
|
|
</>
|
|
);
|
|
}
|