Admin Forum

Add:
- admin/forum/report-posting
- admin/forum/report-comment
- admin/forum/posting
- admin/forum/[id]

Component
Fix:
- screens/Admin/listPageAdmin
- app/(application)/admin/_layout
- Admin/TitlePage
- Admin/BackButtonAntTitle
- Admin/BoxTitlePage

Package Install
Add:
- react-native-toast-message: untuk menampilkan toast

### No Issue
This commit is contained in:
2025-08-11 17:18:14 +08:00
parent 8750660fc7
commit 72f760c6a9
17 changed files with 830 additions and 28 deletions

View File

@@ -1,12 +1,13 @@
import Grid from "@/components/Grid/GridCustom";
import TextCustom from "@/components/Text/TextCustom";
import { View } from "react-native";
import AdminBackButton from "./BackButton";
export default function AdminBackButtonAntTitle({
title,
rightComponent,
}: {
title: string;
rightComponent?: React.ReactNode;
}) {
return (
<>
@@ -22,8 +23,8 @@ export default function AdminBackButtonAntTitle({
{title}
</TextCustom>
</Grid.Col>
<Grid.Col span={2}>
<View />
<Grid.Col span={2} style={{ alignItems: "flex-end" }}>
{rightComponent}
</Grid.Col>
</Grid>
</>

View File

@@ -17,17 +17,8 @@ export default function AdminComp_BoxTitle({
paddingTop={5}
paddingBottom={5}
>
{/* <TextCustom
// style={{ alignSelf: "center" }}
bold
size={TEXT_SIZE_LARGE}
>
{title}
</TextCustom>
{rightComponent} */}
<Grid>
<Grid.Col span={6} style={{ justifyContent: "center" }}>
<Grid.Col span={rightComponent ? 6 : 12} style={{ justifyContent: "center" }}>
<TextCustom
// style={{ alignSelf: "center" }}
bold
@@ -36,15 +27,17 @@ export default function AdminComp_BoxTitle({
{title}
</TextCustom>
</Grid.Col>
<Grid.Col
span={6}
style={{
justifyContent: "center",
alignItems: "flex-end",
}}
>
{rightComponent}
</Grid.Col>
{rightComponent && (
<Grid.Col
span={6}
style={{
justifyContent: "center",
alignItems: "flex-end",
}}
>
{rightComponent}
</Grid.Col>
)}
</Grid>
</BaseBox>
</>

View File

@@ -3,7 +3,7 @@ import TextCustom from "@/components/Text/TextCustom";
export default function AdminTitlePage({ title }: { title: string }) {
return (
<>
<TextCustom bold size={30}>
<TextCustom bold size={25}>
{title}
</TextCustom>
</>