Desskripsi:
- new page: other-report-commentar, other-report-posting, report-commentar, report-posting

# No Issue
This commit is contained in:
2025-07-15 11:24:57 +08:00
parent cce27c26f6
commit a0dad5618a
11 changed files with 308 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ import { MainColor } from "@/constants/color-palet";
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
import { Feather, Ionicons } from "@expo/vector-icons";
export { drawerItemsForumBeranda };
export { drawerItemsForumBeranda, drawerItemsForumComentar };
const drawerItemsForumBeranda = ({
id,
@@ -11,6 +11,15 @@ const drawerItemsForumBeranda = ({
id: string;
status: string;
}) => [
{
icon: (
<Ionicons name="flag" size={ICON_SIZE_SMALL} color={MainColor.white} />
),
label: "Laporkan diskusi",
// color: MainColor.white,
path: `/forum/${id}/report-posting`,
},
{
icon: (
<Feather name="edit" size={ICON_SIZE_SMALL} color={MainColor.white} />
@@ -39,3 +48,22 @@ const drawerItemsForumBeranda = ({
color: MainColor.red,
},
];
const drawerItemsForumComentar = ({ id }: { id: string }) => [
{
icon: (
<Ionicons name="flag" size={ICON_SIZE_SMALL} color={MainColor.white} />
),
label: "Laporkan",
// color: MainColor.white,
path: `/forum/${id}/report-commentar`,
},
{
icon: (
<Ionicons name="trash" size={ICON_SIZE_SMALL} color={MainColor.white} />
),
label: "Hapus",
color: MainColor.red,
path: "",
},
];