Compare commits
4 Commits
admin/7-au
...
admin/11-a
| Author | SHA1 | Date | |
|---|---|---|---|
| 72f760c6a9 | |||
| 8750660fc7 | |||
| d0b64f8109 | |||
| 25f600e8c2 |
@@ -1,5 +1,5 @@
|
|||||||
import { ViewWrapper } from "@/components";
|
import { ViewWrapper } from "@/components";
|
||||||
import TabsTwoHeaderCustom from "@/components/_ShareComponent/TabsTwoHeaderCustom";
|
import TabsTwoButtonCustom from "@/components/_ShareComponent/TabsTwoHeaderCustom";
|
||||||
import Voting_BoxPublishSection from "@/screens/Voting/BoxPublishSection";
|
import Voting_BoxPublishSection from "@/screens/Voting/BoxPublishSection";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ export default function VotingHistory() {
|
|||||||
<ViewWrapper
|
<ViewWrapper
|
||||||
hideFooter
|
hideFooter
|
||||||
headerComponent={
|
headerComponent={
|
||||||
<TabsTwoHeaderCustom
|
<TabsTwoButtonCustom
|
||||||
leftValue="all"
|
leftValue="all"
|
||||||
rightValue="main"
|
rightValue="main"
|
||||||
leftText="Semua Riwayat"
|
leftText="Semua Riwayat"
|
||||||
|
|||||||
@@ -48,59 +48,48 @@ export default function AdminLayout() {
|
|||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack.Screen name="dashboard"
|
<Stack.Screen name="dashboard" />
|
||||||
// options={{ title: "Main Dashboard" }}
|
{/* ================== Investment Start ================== */}
|
||||||
/>
|
<Stack.Screen name="investment/index" />
|
||||||
<Stack.Screen
|
<Stack.Screen name="investment/publish" />
|
||||||
name="investment/index"
|
<Stack.Screen name="investment/review" />
|
||||||
// options={{ title: "Dashboard Investasi" }}
|
<Stack.Screen name="investment/reject" />
|
||||||
/>
|
{/* ================== Investment End ================== */}
|
||||||
<Stack.Screen
|
|
||||||
name="investment/publish"
|
{/* ================== Maps Start ================== */}
|
||||||
// options={{ title: "Investasi Publish" }}
|
<Stack.Screen name="maps" />
|
||||||
/>
|
{/* ================== Maps End ================== */}
|
||||||
<Stack.Screen
|
|
||||||
name="investment/review"
|
{/* ================== App Information Start ================== */}
|
||||||
// options={{ title: "Investasi Review" }}
|
<Stack.Screen name="app-information/index" />
|
||||||
/>
|
{/* ================== App Information End ================== */}
|
||||||
<Stack.Screen
|
|
||||||
name="investment/reject"
|
{/* ================== Job Start ================== */}
|
||||||
// options={{ title: "Investasi Reject" }}
|
<Stack.Screen name="job/index" />
|
||||||
/>
|
{/* <Stack.Screen name="job/publish" />
|
||||||
<Stack.Screen name="maps"
|
<Stack.Screen name="job/review" />
|
||||||
// options={{ title: "Maps" }}
|
<Stack.Screen name="job/reject" /> */}
|
||||||
/>
|
<Stack.Screen name="job/[status]/status" />
|
||||||
<Stack.Screen name="app-information/index"
|
<Stack.Screen name="job/[id]/[status]/index" />
|
||||||
// options={{ title: "Information" }}
|
|
||||||
/>
|
{/* ================== Collaboration Start ================== */}
|
||||||
<Stack.Screen name="job/index"
|
<Stack.Screen name="collaboration/index" />
|
||||||
// options={{ title: "Dashboard Job" }}
|
<Stack.Screen name="collaboration/publish" />
|
||||||
/>
|
<Stack.Screen name="collaboration/group" />
|
||||||
<Stack.Screen name="job/publish"
|
<Stack.Screen name="collaboration/reject" />
|
||||||
// options={{ title: "Job Publish" }}
|
<Stack.Screen name="collaboration/[id]/[status]"/>
|
||||||
/>
|
<Stack.Screen name="collaboration/[id]/group"/>
|
||||||
<Stack.Screen name="job/review"
|
{/* ================== Collaboration End ================== */}
|
||||||
// options={{ title: "Job Review" }}
|
|
||||||
/>
|
{/* ================== Forum Start ================== */}
|
||||||
<Stack.Screen name="job/reject"
|
<Stack.Screen name="forum/index" />
|
||||||
// options={{ title: "Job Reject" }}
|
<Stack.Screen name="forum/[id]/index" />
|
||||||
/>
|
<Stack.Screen name="forum/report-comment"/>
|
||||||
<Stack.Screen
|
<Stack.Screen name="forum/report-posting"/>
|
||||||
name="collaboration/index"
|
|
||||||
// options={{ title: "Dashboard Collaboration" }}
|
<Stack.Screen name="forum/[id]/list-report-posting" />
|
||||||
/>
|
<Stack.Screen name="forum/[id]/list-report-comment"/>
|
||||||
<Stack.Screen
|
{/* ================== Forum End ================== */}
|
||||||
name="collaboration/publish"
|
|
||||||
// options={{ title: "Collaboration Publish" }}
|
|
||||||
/>
|
|
||||||
<Stack.Screen
|
|
||||||
name="collaboration/group"
|
|
||||||
// options={{ title: "Collaboration Group" }}
|
|
||||||
/>
|
|
||||||
<Stack.Screen
|
|
||||||
name="collaboration/reject"
|
|
||||||
// options={{ title: "Collaboration Reject" }}
|
|
||||||
/>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<DrawerAdmin
|
<DrawerAdmin
|
||||||
|
|||||||
89
app/(application)/admin/collaboration/[id]/[status].tsx
Normal file
89
app/(application)/admin/collaboration/[id]/[status].tsx
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
import {
|
||||||
|
BaseBox,
|
||||||
|
BoxButtonOnFooter,
|
||||||
|
ButtonCustom,
|
||||||
|
Grid,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { useLocalSearchParams } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminCollaborationPublish() {
|
||||||
|
const { id, status } = useLocalSearchParams();
|
||||||
|
console.log("params:", id, status);
|
||||||
|
const bottomFooter = (
|
||||||
|
<BoxButtonOnFooter>
|
||||||
|
<ButtonCustom
|
||||||
|
backgroundColor={MainColor.red}
|
||||||
|
textColor="white"
|
||||||
|
onPress={() => {}}
|
||||||
|
>
|
||||||
|
Reject
|
||||||
|
</ButtonCustom>
|
||||||
|
</BoxButtonOnFooter>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title={`Detail ${status}`} />}
|
||||||
|
footerComponent={bottomFooter}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<Grid key={i}>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 10 }}
|
||||||
|
>
|
||||||
|
<TextCustom bold>{item.label}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={8} style={{ justifyContent: "center" }}>
|
||||||
|
<TextCustom>{item.value}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Bagas Banuna",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Judul Proyek",
|
||||||
|
value:
|
||||||
|
"Judul Proyek: Lorem ipsum dolor sit amet consectetur adipisicing elit.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Industri",
|
||||||
|
value: "Kesehatan",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Jumlah Partisipan ",
|
||||||
|
value: "0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Lokasi",
|
||||||
|
value: "Kuta Selatan, Bali",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Tujuan Proyek",
|
||||||
|
value:
|
||||||
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Keuntungan",
|
||||||
|
value:
|
||||||
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
||||||
|
},
|
||||||
|
];
|
||||||
97
app/(application)/admin/collaboration/[id]/group.tsx
Normal file
97
app/(application)/admin/collaboration/[id]/group.tsx
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
import {
|
||||||
|
BaseBox,
|
||||||
|
Grid,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { useLocalSearchParams } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminCollaborationGroup() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
console.log("params:", id);
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle title={`Detail Group ${id}`} />
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<Grid key={i}>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 10 }}
|
||||||
|
>
|
||||||
|
<TextCustom bold>{item.label}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={8} style={{ justifyContent: "center" }}>
|
||||||
|
<TextCustom>{item.value}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
<TextCustom align="center">Anggota</TextCustom>
|
||||||
|
|
||||||
|
{Array.from({ length: 10 }).map((_, i) => (
|
||||||
|
<Grid key={i}>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 10 }}
|
||||||
|
>
|
||||||
|
<TextCustom bold>Username</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={8} style={{ justifyContent: "center" }}>
|
||||||
|
<TextCustom>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
</StackCustom>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Admin Group",
|
||||||
|
value: "Bagas Banuna",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Nama Group",
|
||||||
|
value: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Industri",
|
||||||
|
value: "Kesehatan",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Jumlah Partisipan ",
|
||||||
|
value: "0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Lokasi",
|
||||||
|
value: "Kuta Selatan, Bali",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Tujuan Proyek",
|
||||||
|
value:
|
||||||
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Keuntungan",
|
||||||
|
value:
|
||||||
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
||||||
|
},
|
||||||
|
];
|
||||||
@@ -1,10 +1,68 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { Octicons } from "@expo/vector-icons";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
export default function AdminCollaborationGroup() {
|
export default function AdminCollaborationGroup() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper>
|
<ViewWrapper headerComponent={<AdminTitlePage title="Collaboration" />}>
|
||||||
<TextCustom>Admin Collaboration Group</TextCustom>
|
<StackCustom gap={"xs"}>
|
||||||
|
<AdminComp_BoxTitle title="Group" />
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Admin Group"
|
||||||
|
title3="Nama Group"
|
||||||
|
/>
|
||||||
|
<Spacing height={10} />
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<Octicons
|
||||||
|
name="eye"
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color="black"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/collaboration/${index}/group`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={
|
||||||
|
<TextCustom truncate={1}>Username username </TextCustom>
|
||||||
|
}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2}>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
|
ducimus! Dolorem nobis modi officia debitis, beatae
|
||||||
|
mollitia.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +1,37 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
import { StackCustom, ViewWrapper } from "@/components";
|
||||||
|
import AdminComp_BoxDashboard from "@/components/_ShareComponent/Admin/BoxDashboard";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { Entypo, FontAwesome } from "@expo/vector-icons";
|
||||||
|
|
||||||
export default function AdminCollaboration() {
|
export default function AdminCollaboration() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper>
|
<ViewWrapper headerComponent={<AdminTitlePage title="Collaboration" />}>
|
||||||
<TextCustom>Admin Collaboration</TextCustom>
|
<StackCustom gap={"xs"}>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<AdminComp_BoxDashboard key={i} item={item} />
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Publish",
|
||||||
|
value: 4,
|
||||||
|
icon: <Entypo name="publish" size={25} color={MainColor.green} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Group",
|
||||||
|
value: 7,
|
||||||
|
icon: <FontAwesome name="group" size={25} color={MainColor.yellow} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Reject",
|
||||||
|
value: 7,
|
||||||
|
icon: <FontAwesome name="warning" size={25} color={MainColor.red} />,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|||||||
@@ -1,11 +1,70 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { Octicons } from "@expo/vector-icons";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
export default function AdminCollaborationPublish() {
|
export default function AdminCollaborationPublish() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper>
|
<ViewWrapper headerComponent={<AdminTitlePage title="Collaboration" />}>
|
||||||
<TextCustom>Admin Collaboration Publish</TextCustom>
|
<StackCustom gap={"xs"}>
|
||||||
|
<AdminComp_BoxTitle title="Publish" />
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Judul Proyek"
|
||||||
|
/>
|
||||||
|
<Spacing height={10} />
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<Octicons
|
||||||
|
name="eye"
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color="black"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/collaboration/${index}/publish`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={
|
||||||
|
<TextCustom truncate={1}>Username username </TextCustom>
|
||||||
|
}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2}>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
|
ducimus! Dolorem nobis modi officia debitis, beatae
|
||||||
|
mollitia.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,68 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { Octicons } from "@expo/vector-icons";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
export default function AdminCollaborationReject() {
|
export default function AdminCollaborationReject() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper>
|
<ViewWrapper headerComponent={<AdminTitlePage title="Collaboration" />}>
|
||||||
<TextCustom>Admin Collaboration Reject</TextCustom>
|
<StackCustom gap={"xs"}>
|
||||||
|
<AdminComp_BoxTitle title="Reject" />
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Judul Proyek"
|
||||||
|
/>
|
||||||
|
<Spacing height={10} />
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<Octicons
|
||||||
|
name="eye"
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color="black"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/collaboration/${index}/reject`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={
|
||||||
|
<TextCustom truncate={1}>Username username </TextCustom>
|
||||||
|
}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2}>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
|
ducimus! Dolorem nobis modi officia debitis, beatae
|
||||||
|
mollitia.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
203
app/(application)/admin/forum/[id]/index.tsx
Normal file
203
app/(application)/admin/forum/[id]/index.tsx
Normal file
@@ -0,0 +1,203 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
DrawerCustom,
|
||||||
|
MenuDrawerDynamicGrid,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconDot, IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import { IconTrash } from "@/components/_Icon/IconTrash";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import {
|
||||||
|
ICON_SIZE_BUTTON,
|
||||||
|
ICON_SIZE_MEDIUM,
|
||||||
|
ICON_SIZE_XLARGE,
|
||||||
|
} from "@/constants/constans-value";
|
||||||
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
import Toast from "react-native-toast-message";
|
||||||
|
|
||||||
|
export default function AdminForumDetailPosting() {
|
||||||
|
const [openDrawerPage, setOpenDrawerPage] = useState(false);
|
||||||
|
const [openDrawerAction, setOpenDrawerAction] = useState(false);
|
||||||
|
const [id, setId] = useState<any>();
|
||||||
|
|
||||||
|
const handlerAction = (item: { value: string; path: string }) => {
|
||||||
|
if (item.value === "delete") {
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Hapus Posting",
|
||||||
|
message: "Apakah Anda yakin ingin menghapus posting ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Hapus",
|
||||||
|
onPressRight: () => {
|
||||||
|
Toast.show({
|
||||||
|
type: "success",
|
||||||
|
text1: "Posting berhasil dihapus",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
router.navigate(item.path as any);
|
||||||
|
}
|
||||||
|
setOpenDrawerAction(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle
|
||||||
|
title="Detail Posting"
|
||||||
|
rightComponent={
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconDot size={16} color={MainColor.darkblue} />}
|
||||||
|
onPress={() => setOpenDrawerPage(true)}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom gap={"sm"}>
|
||||||
|
{listDataAction.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
<TextCustom bold>Posting</TextCustom>
|
||||||
|
<TextCustom>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Asperiores cupiditate nobis dignissimos explicabo quo unde dolorum
|
||||||
|
numquam eos ab laborum fugiat illo nam velit quibusdam, maxime
|
||||||
|
assumenda aut vero provident!
|
||||||
|
</TextCustom>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
{/* <AdminComp_BoxTitle title="Komentar" rightComponent={rightComponent} /> */}
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable title1="Aksi" title2="Username" title3="Komentar" />
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<Ionicons
|
||||||
|
name="ellipsis-vertical-outline"
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color="black"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
setOpenDrawerAction(true);
|
||||||
|
setId(index + 1);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2}>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
|
ducimus! Dolorem nobis modi officia debitis, beatae mollitia.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawerPage}
|
||||||
|
closeDrawer={() => setOpenDrawerPage(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
<MenuDrawerDynamicGrid
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
icon: (
|
||||||
|
<Ionicons
|
||||||
|
name="list"
|
||||||
|
size={ICON_SIZE_XLARGE}
|
||||||
|
color={MainColor.white}
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
label: "Daftar Report Posting",
|
||||||
|
value: "detail",
|
||||||
|
path: `/admin/forum/${id}/list-report-posting`,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
onPressItem={(item) => {
|
||||||
|
router.navigate(item.path as any);
|
||||||
|
setOpenDrawerPage(false);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</DrawerCustom>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawerAction}
|
||||||
|
closeDrawer={() => setOpenDrawerAction(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
<MenuDrawerDynamicGrid
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
icon: <IconView />,
|
||||||
|
label: "Detail Komentar",
|
||||||
|
value: "detail",
|
||||||
|
path: `admin/forum/${id}/list-report-comment`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: (
|
||||||
|
<IconTrash size={ICON_SIZE_MEDIUM} color={MainColor.white} />
|
||||||
|
),
|
||||||
|
label: "Hapus Komentar",
|
||||||
|
value: "delete",
|
||||||
|
path: "",
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
onPressItem={(item) => {
|
||||||
|
handlerAction(item as any);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</DrawerCustom>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const listDataAction = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Username",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: <BadgeCustom color={MainColor.green}>Open</BadgeCustom>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Komentar",
|
||||||
|
value: "10",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Total Report",
|
||||||
|
value: "1",
|
||||||
|
},
|
||||||
|
];
|
||||||
168
app/(application)/admin/forum/[id]/list-report-comment.tsx
Normal file
168
app/(application)/admin/forum/[id]/list-report-comment.tsx
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BaseBox,
|
||||||
|
DrawerCustom,
|
||||||
|
MenuDrawerDynamicGrid,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconDot, IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import { IconTrash } from "@/components/_Icon/IconTrash";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
import Toast from "react-native-toast-message";
|
||||||
|
|
||||||
|
export default function AdminForumReportComment() {
|
||||||
|
const [openDrawer, setOpenDrawer] = useState(false);
|
||||||
|
const [openDrawerAction, setOpenDrawerAction] = useState(false);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle
|
||||||
|
title="Report Komentar"
|
||||||
|
rightComponent={
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconDot size={16} color={MainColor.darkblue} />}
|
||||||
|
onPress={() => setOpenDrawer(true)}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom gap={"sm"}>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
<TextCustom bold>Posting</TextCustom>
|
||||||
|
<TextCustom>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Asperiores cupiditate nobis dignissimos explicabo quo unde dolorum
|
||||||
|
numquam eos ab laborum fugiat illo nam velit quibusdam, maxime
|
||||||
|
assumenda aut vero provident!
|
||||||
|
</TextCustom>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
<AdminComp_BoxTitle title="Daftar Report Komentar" />
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Kategori Report"
|
||||||
|
/>
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
{Array.from({ length: 5 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconView size={ICON_SIZE_BUTTON} color="black" />}
|
||||||
|
onPress={() => {
|
||||||
|
setOpenDrawerAction(true);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2} align="center">
|
||||||
|
SPAM
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawer}
|
||||||
|
closeDrawer={() => setOpenDrawer(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
<MenuDrawerDynamicGrid
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
icon: <IconTrash />,
|
||||||
|
label: "Hapus Komentar",
|
||||||
|
value: "delete",
|
||||||
|
path: "",
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
onPressItem={(item) => {
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Hapus Komentar",
|
||||||
|
message: "Apakah Anda yakin ingin menghapus komentar ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Hapus",
|
||||||
|
onPressRight: () => {
|
||||||
|
setOpenDrawer(false);
|
||||||
|
Toast.show({
|
||||||
|
type: "success",
|
||||||
|
text1: "Komentar berhasil dihapus",
|
||||||
|
});
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</DrawerCustom>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawerAction}
|
||||||
|
closeDrawer={() => setOpenDrawerAction(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
{listDataAction.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</DrawerCustom>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Username",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const listDataAction = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Riyusa",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Kategori Report",
|
||||||
|
value: "SPAM",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Deskripsi",
|
||||||
|
value:
|
||||||
|
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis asperiores quidem deleniti architecto eaque et nostrum, ad consequuntur eveniet quisquam quae voluptatum ducimus! Dolorem nobis modi officia debitis, beatae mollitia.",
|
||||||
|
},
|
||||||
|
];
|
||||||
170
app/(application)/admin/forum/[id]/list-report-posting.tsx
Normal file
170
app/(application)/admin/forum/[id]/list-report-posting.tsx
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
DrawerCustom,
|
||||||
|
MenuDrawerDynamicGrid,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconDot, IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import { IconTrash } from "@/components/_Icon/IconTrash";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
import Toast from "react-native-toast-message";
|
||||||
|
|
||||||
|
export default function AdminForumReportPosting() {
|
||||||
|
const [openDrawerPage, setOpenDrawerPage] = useState(false);
|
||||||
|
const [openDrawerAction, setOpenDrawerAction] = useState(false);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle
|
||||||
|
title="Report Posting"
|
||||||
|
rightComponent={
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconDot size={16} color={MainColor.darkblue} />}
|
||||||
|
onPress={() => setOpenDrawerPage(true)}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom gap={"sm"}>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
<TextCustom bold>Posting</TextCustom>
|
||||||
|
<TextCustom>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Asperiores cupiditate nobis dignissimos explicabo quo unde dolorum
|
||||||
|
numquam eos ab laborum fugiat illo nam velit quibusdam, maxime
|
||||||
|
assumenda aut vero provident!
|
||||||
|
</TextCustom>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
<AdminComp_BoxTitle title="Daftar Report Posting" />
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Kategori Report"
|
||||||
|
/>
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
{Array.from({ length: 5 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconView size={ICON_SIZE_BUTTON} color="black" />}
|
||||||
|
onPress={() => setOpenDrawerAction(true)}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2} align="center">
|
||||||
|
SPAM
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawerPage}
|
||||||
|
closeDrawer={() => setOpenDrawerPage(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
<MenuDrawerDynamicGrid
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
icon: <IconTrash />,
|
||||||
|
label: "Hapus Posting",
|
||||||
|
value: "delete",
|
||||||
|
path: "",
|
||||||
|
color: MainColor.red,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
onPressItem={(item) => {
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Hapus Posting",
|
||||||
|
message: "Apakah Anda yakin ingin menghapus posting ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Hapus",
|
||||||
|
onPressRight: () => {
|
||||||
|
setOpenDrawerPage(false);
|
||||||
|
Toast.show({
|
||||||
|
type: "success",
|
||||||
|
text1: "Posting berhasil dihapus",
|
||||||
|
});
|
||||||
|
router.back()
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</DrawerCustom>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawerAction}
|
||||||
|
closeDrawer={() => setOpenDrawerAction(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
{listDataAction.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</DrawerCustom>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Username",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: <BadgeCustom color={MainColor.green}>Open</BadgeCustom>,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const listDataAction = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Firman Nusantara",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Kategori Report",
|
||||||
|
value: "SPAM",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Deskripsi",
|
||||||
|
value:
|
||||||
|
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis asperiores quidem deleniti architecto eaque et nostrum, ad consequuntur eveniet quisquam quae voluptatum ducimus! Dolorem nobis modi officia debitis, beatae mollitia.",
|
||||||
|
},
|
||||||
|
];
|
||||||
42
app/(application)/admin/forum/index.tsx
Normal file
42
app/(application)/admin/forum/index.tsx
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
import { Spacing, StackCustom, ViewWrapper } from "@/components";
|
||||||
|
import {
|
||||||
|
IconPublish,
|
||||||
|
IconReport,
|
||||||
|
} from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminComp_BoxDashboard from "@/components/_ShareComponent/Admin/BoxDashboard";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
|
||||||
|
export default function AdminForum() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper>
|
||||||
|
<AdminTitlePage title="Forum" />
|
||||||
|
<Spacing />
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<AdminComp_BoxDashboard key={i} item={item} />
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Posting",
|
||||||
|
value: 4,
|
||||||
|
icon: <IconPublish size={25} color={MainColor.green} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Report Posting",
|
||||||
|
value: 7,
|
||||||
|
icon: <IconReport size={25} color={MainColor.orange} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Report Comment",
|
||||||
|
value: 5,
|
||||||
|
icon: <IconReport size={25} color={MainColor.red} />,
|
||||||
|
},
|
||||||
|
];
|
||||||
61
app/(application)/admin/forum/posting.tsx
Normal file
61
app/(application)/admin/forum/posting.tsx
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
SearchInput,
|
||||||
|
Spacing,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import React from "react";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
|
export default function AdminForumPosting() {
|
||||||
|
const rightComponent = (
|
||||||
|
<SearchInput
|
||||||
|
containerStyle={{ width: "100%", marginBottom: 0 }}
|
||||||
|
placeholder="Cari"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper headerComponent={<AdminTitlePage title="Forum" />}>
|
||||||
|
<AdminComp_BoxTitle title={"Posting"} rightComponent={rightComponent} />
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable title1="Aksi" title2="Username" title3="Postingan" />
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconView size={ICON_SIZE_BUTTON} color="black" />}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/forum/${index + 1}`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2}>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
|
ducimus! Dolorem nobis modi officia debitis, beatae mollitia.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
65
app/(application)/admin/forum/report-comment.tsx
Normal file
65
app/(application)/admin/forum/report-comment.tsx
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
Divider,
|
||||||
|
SearchInput,
|
||||||
|
Spacing,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminForumReportComment() {
|
||||||
|
|
||||||
|
const rightComponent = (
|
||||||
|
<SearchInput
|
||||||
|
containerStyle={{ width: "100%", marginBottom: 0 }}
|
||||||
|
placeholder="Cari Komentar"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper headerComponent={<AdminTitlePage title="Forum" />}>
|
||||||
|
<AdminComp_BoxTitle
|
||||||
|
title="Report Comment"
|
||||||
|
rightComponent={rightComponent}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable title1="Aksi" title2="Pelapor" title3="Jenis Laporan" />
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<IconView size={ICON_SIZE_BUTTON} color={MainColor.black} />
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/forum/${index + 1}/list-report-comment`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2} align="center">
|
||||||
|
SPAM
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
73
app/(application)/admin/forum/report-posting.tsx
Normal file
73
app/(application)/admin/forum/report-posting.tsx
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
Divider,
|
||||||
|
SearchInput,
|
||||||
|
Spacing,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { router } from "expo-router";
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
|
export default function AdminForumReportPosting() {
|
||||||
|
const [openDrawer, setOpenDrawer] = useState(false);
|
||||||
|
const [id, setId] = useState<any>();
|
||||||
|
|
||||||
|
const rightComponent = (
|
||||||
|
<SearchInput
|
||||||
|
containerStyle={{ width: "100%", marginBottom: 0 }}
|
||||||
|
placeholder="Cari"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper headerComponent={<AdminTitlePage title="Forum" />}>
|
||||||
|
<AdminComp_BoxTitle
|
||||||
|
title="Report Posting"
|
||||||
|
rightComponent={rightComponent}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable title1="Aksi" title2="Pelapor" title3="Postingan" />
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<IconView size={ICON_SIZE_BUTTON} color={MainColor.black} />
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/forum/${id}/list-report-posting`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2} align="center">
|
||||||
|
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Omnis laborum doloremque eius velit voluptate corrupti vel,
|
||||||
|
provident quaerat tempore animi sed accusamus amet.
|
||||||
|
Temporibus, praesentium? Rem voluptatum nesciunt voluptas
|
||||||
|
repellat.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
110
app/(application)/admin/job/[id]/[status]/index.tsx
Normal file
110
app/(application)/admin/job/[id]/[status]/index.tsx
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
import {
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
ButtonCustom,
|
||||||
|
DummyLandscapeImage,
|
||||||
|
Grid,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { useLocalSearchParams } from "expo-router";
|
||||||
|
import _ from "lodash";
|
||||||
|
|
||||||
|
export default function AdminJobDetailStatus() {
|
||||||
|
const { id, status } = useLocalSearchParams();
|
||||||
|
|
||||||
|
const colorBadge = () => {
|
||||||
|
if (status === "publish") {
|
||||||
|
return MainColor.green;
|
||||||
|
} else if (status === "review") {
|
||||||
|
return MainColor.orange;
|
||||||
|
} else if (status === "reject") {
|
||||||
|
return MainColor.red;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: "Bagas Banuna",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Judul",
|
||||||
|
value: `Judul Proyek: ${id}Lorem ipsum dolor sit amet consectetur adipisicing elit.`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: (
|
||||||
|
<BadgeCustom color={colorBadge()}>
|
||||||
|
{_.startCase(status as string)}
|
||||||
|
</BadgeCustom>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Konten",
|
||||||
|
value: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Deskripsi",
|
||||||
|
value: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// label: "Poster",
|
||||||
|
// value: (
|
||||||
|
// <ButtonCustom
|
||||||
|
// href={`/(application)/()/${id}`}
|
||||||
|
// >
|
||||||
|
// Lihat Poster
|
||||||
|
// </ButtonCustom>
|
||||||
|
// ),
|
||||||
|
// },
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title={`Detail Data`} />}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<Grid key={i}>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 10 }}
|
||||||
|
>
|
||||||
|
<TextCustom bold>{item.label}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={8} style={{ justifyContent: "center" }}>
|
||||||
|
<TextCustom>{item.value}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
|
||||||
|
<TextCustom bold>Poster</TextCustom>
|
||||||
|
|
||||||
|
<DummyLandscapeImage />
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
{status === "review" && (
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col span={6} style={{ paddingRight: 10 }}>
|
||||||
|
<ButtonCustom backgroundColor={MainColor.green} textColor="white">
|
||||||
|
Publish
|
||||||
|
</ButtonCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={6} style={{ paddingLeft: 10 }}>
|
||||||
|
<ButtonCustom backgroundColor={MainColor.red} textColor="white">
|
||||||
|
Reject
|
||||||
|
</ButtonCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
)}
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
76
app/(application)/admin/job/[status]/status.tsx
Normal file
76
app/(application)/admin/job/[status]/status.tsx
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BaseBox,
|
||||||
|
SearchInput,
|
||||||
|
Spacing,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper
|
||||||
|
} from "@/components";
|
||||||
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { Octicons } from "@expo/vector-icons";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import _ from "lodash";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
|
export default function AdminJobStatus() {
|
||||||
|
const { status } = useLocalSearchParams();
|
||||||
|
const rightComponent = (
|
||||||
|
<SearchInput
|
||||||
|
containerStyle={{ width: "100%", marginBottom: 0 }}
|
||||||
|
placeholder="Cari"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper headerComponent={<AdminTitlePage title="Job Vacancy" />}>
|
||||||
|
<AdminComp_BoxTitle
|
||||||
|
title={`${_.startCase(status as string)}`}
|
||||||
|
rightComponent={rightComponent}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Judul Pekerjaan"
|
||||||
|
/>
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<AdminTableValue
|
||||||
|
key={index}
|
||||||
|
value1={
|
||||||
|
<ActionIcon
|
||||||
|
icon={
|
||||||
|
<Octicons
|
||||||
|
name="eye"
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color="black"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/job/${index}/${status}`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
|
value3={
|
||||||
|
<TextCustom truncate={2}>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
|
ducimus! Dolorem nobis modi officia debitis, beatae mollitia.
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,11 +1,43 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
import { Spacing, StackCustom, ViewWrapper } from "@/components";
|
||||||
|
import {
|
||||||
|
IconPublish,
|
||||||
|
IconReject,
|
||||||
|
IconReview,
|
||||||
|
} from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminComp_BoxDashboard from "@/components/_ShareComponent/Admin/BoxDashboard";
|
||||||
|
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
|
||||||
export default function AdminJob() {
|
export default function AdminJob() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper>
|
<ViewWrapper>
|
||||||
<TextCustom>Admin Job</TextCustom>
|
<AdminTitlePage title="Job Vacancy" />
|
||||||
|
<Spacing />
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<AdminComp_BoxDashboard key={i} item={item} />
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Publish",
|
||||||
|
value: 4,
|
||||||
|
icon: <IconPublish size={25} color={MainColor.green} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Review",
|
||||||
|
value: 7,
|
||||||
|
icon: <IconReview size={25} color={MainColor.orange} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Reject",
|
||||||
|
value: 5,
|
||||||
|
icon: <IconReject size={25} color={MainColor.red} />,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
|
||||||
|
|
||||||
export default function AdminJobPublish() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ViewWrapper>
|
|
||||||
<TextCustom>Admin Job Publish</TextCustom>
|
|
||||||
</ViewWrapper>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
|
||||||
|
|
||||||
export default function AdminJobReject() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ViewWrapper>
|
|
||||||
<TextCustom>Admin Job Reject</TextCustom>
|
|
||||||
</ViewWrapper>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
|
||||||
|
|
||||||
export default function AdminJobReview() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ViewWrapper>
|
|
||||||
<TextCustom>Admin Job Review</TextCustom>
|
|
||||||
</ViewWrapper>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -2,6 +2,7 @@ import { MainColor } from "@/constants/color-palet";
|
|||||||
import { Stack } from "expo-router";
|
import { Stack } from "expo-router";
|
||||||
import "react-native-gesture-handler";
|
import "react-native-gesture-handler";
|
||||||
import { SafeAreaProvider } from "react-native-safe-area-context";
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
||||||
|
import Toast from "react-native-toast-message";
|
||||||
|
|
||||||
export default function RootLayout() {
|
export default function RootLayout() {
|
||||||
return (
|
return (
|
||||||
@@ -30,6 +31,7 @@ export default function RootLayout() {
|
|||||||
<Stack.Screen name="(application)" options={{ headerShown: false }} />
|
<Stack.Screen name="(application)" options={{ headerShown: false }} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</SafeAreaProvider>
|
</SafeAreaProvider>
|
||||||
|
<Toast />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
3
bun.lock
3
bun.lock
@@ -45,6 +45,7 @@
|
|||||||
"react-native-reanimated": "~3.17.4",
|
"react-native-reanimated": "~3.17.4",
|
||||||
"react-native-safe-area-context": "5.4.0",
|
"react-native-safe-area-context": "5.4.0",
|
||||||
"react-native-screens": "~4.11.1",
|
"react-native-screens": "~4.11.1",
|
||||||
|
"react-native-toast-message": "^2.3.3",
|
||||||
"react-native-vector-icons": "^10.2.0",
|
"react-native-vector-icons": "^10.2.0",
|
||||||
"react-native-web": "~0.20.0",
|
"react-native-web": "~0.20.0",
|
||||||
"react-native-webview": "13.13.5",
|
"react-native-webview": "13.13.5",
|
||||||
@@ -1413,6 +1414,8 @@
|
|||||||
|
|
||||||
"react-native-screens": ["react-native-screens@4.11.1", "", { "dependencies": { "react-freeze": "^1.0.0", "react-native-is-edge-to-edge": "^1.1.7", "warn-once": "^0.1.0" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-F0zOzRVa3ptZfLpD0J8ROdo+y1fEPw+VBFq1MTY/iyDu08al7qFUO5hLMd+EYMda5VXGaTFCa8q7bOppUszhJw=="],
|
"react-native-screens": ["react-native-screens@4.11.1", "", { "dependencies": { "react-freeze": "^1.0.0", "react-native-is-edge-to-edge": "^1.1.7", "warn-once": "^0.1.0" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-F0zOzRVa3ptZfLpD0J8ROdo+y1fEPw+VBFq1MTY/iyDu08al7qFUO5hLMd+EYMda5VXGaTFCa8q7bOppUszhJw=="],
|
||||||
|
|
||||||
|
"react-native-toast-message": ["react-native-toast-message@2.3.3", "", { "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-4IIUHwUPvKHu4gjD0Vj2aGQzqPATiblL1ey8tOqsxOWRPGGu52iIbL8M/mCz4uyqecvPdIcMY38AfwRuUADfQQ=="],
|
||||||
|
|
||||||
"react-native-vector-icons": ["react-native-vector-icons@10.2.0", "", { "dependencies": { "prop-types": "^15.7.2", "yargs": "^16.1.1" }, "bin": { "fa-upgrade.sh": "bin/fa-upgrade.sh", "fa5-upgrade": "bin/fa5-upgrade.sh", "fa6-upgrade": "bin/fa6-upgrade.sh", "generate-icon": "bin/generate-icon.js" } }, "sha512-n5HGcxUuVaTf9QJPs/W22xQpC2Z9u0nb0KgLPnVltP8vdUvOp6+R26gF55kilP/fV4eL4vsAHUqUjewppJMBOQ=="],
|
"react-native-vector-icons": ["react-native-vector-icons@10.2.0", "", { "dependencies": { "prop-types": "^15.7.2", "yargs": "^16.1.1" }, "bin": { "fa-upgrade.sh": "bin/fa-upgrade.sh", "fa5-upgrade": "bin/fa5-upgrade.sh", "fa6-upgrade": "bin/fa6-upgrade.sh", "generate-icon": "bin/generate-icon.js" } }, "sha512-n5HGcxUuVaTf9QJPs/W22xQpC2Z9u0nb0KgLPnVltP8vdUvOp6+R26gF55kilP/fV4eL4vsAHUqUjewppJMBOQ=="],
|
||||||
|
|
||||||
"react-native-web": ["react-native-web@0.20.0", "", { "dependencies": { "@babel/runtime": "^7.18.6", "@react-native/normalize-colors": "^0.74.1", "fbjs": "^3.0.4", "inline-style-prefixer": "^7.0.1", "memoize-one": "^6.0.0", "nullthrows": "^1.1.1", "postcss-value-parser": "^4.2.0", "styleq": "^0.1.3" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }, "sha512-OOSgrw+aON6R3hRosCau/xVxdLzbjEcsLysYedka0ZON4ZZe6n9xgeN9ZkoejhARM36oTlUgHIQqxGutEJ9Wxg=="],
|
"react-native-web": ["react-native-web@0.20.0", "", { "dependencies": { "@babel/runtime": "^7.18.6", "@react-native/normalize-colors": "^0.74.1", "fbjs": "^3.0.4", "inline-style-prefixer": "^7.0.1", "memoize-one": "^6.0.0", "nullthrows": "^1.1.1", "postcss-value-parser": "^4.2.0", "styleq": "^0.1.3" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }, "sha512-OOSgrw+aON6R3hRosCau/xVxdLzbjEcsLysYedka0ZON4ZZe6n9xgeN9ZkoejhARM36oTlUgHIQqxGutEJ9Wxg=="],
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ type IMenuDrawerItemProps = {
|
|||||||
icon: React.ReactNode;
|
icon: React.ReactNode;
|
||||||
label: string;
|
label: string;
|
||||||
value?: string;
|
value?: string;
|
||||||
path?: Href;
|
path?: Href | string;
|
||||||
color?: string;
|
color?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ import { MainColor } from "@/constants/color-palet";
|
|||||||
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
|
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
|
||||||
import { Ionicons } from "@expo/vector-icons";
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
|
|
||||||
export default function IconArchive({ color }: { color?: string }) {
|
export default function IconArchive({ color, size }: { color?: string; size?: number }) {
|
||||||
return (
|
return (
|
||||||
<Ionicons
|
<Ionicons
|
||||||
name="archive"
|
name="archive"
|
||||||
size={ICON_SIZE_SMALL}
|
size={size || ICON_SIZE_SMALL}
|
||||||
color={color || MainColor.white}
|
color={color || MainColor.white}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
111
components/_Icon/IconComponent.tsx
Normal file
111
components/_Icon/IconComponent.tsx
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||||
|
import {
|
||||||
|
Entypo,
|
||||||
|
FontAwesome,
|
||||||
|
FontAwesome6,
|
||||||
|
Ionicons,
|
||||||
|
Octicons,
|
||||||
|
} from "@expo/vector-icons";
|
||||||
|
|
||||||
|
export const IconPublish = ({
|
||||||
|
size,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
size?: number;
|
||||||
|
color?: string;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Entypo
|
||||||
|
name="publish"
|
||||||
|
size={size || ICON_SIZE_MEDIUM}
|
||||||
|
color={color || MainColor.white}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const IconReview = ({
|
||||||
|
size,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
size?: number;
|
||||||
|
color?: string;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<FontAwesome6
|
||||||
|
name="person-circle-check"
|
||||||
|
size={size || ICON_SIZE_MEDIUM}
|
||||||
|
color={color || MainColor.white}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const IconReject = ({
|
||||||
|
size,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
size?: number;
|
||||||
|
color?: string;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<FontAwesome
|
||||||
|
name="warning"
|
||||||
|
size={size || ICON_SIZE_MEDIUM}
|
||||||
|
color={color || MainColor.white}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const IconReport = ({
|
||||||
|
size,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
size?: number;
|
||||||
|
color?: string;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Octicons
|
||||||
|
name="report"
|
||||||
|
size={size || ICON_SIZE_MEDIUM}
|
||||||
|
color={color || MainColor.white}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const IconView = ({
|
||||||
|
size,
|
||||||
|
color,
|
||||||
|
}: {
|
||||||
|
size?: number;
|
||||||
|
color?: string;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Octicons
|
||||||
|
name="eye"
|
||||||
|
size={size || ICON_SIZE_MEDIUM}
|
||||||
|
color={color || MainColor.white}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const IconDot = ({ size, color }: { size?: number; color?: string }) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Ionicons
|
||||||
|
name="ellipsis-vertical"
|
||||||
|
size={size || ICON_SIZE_MEDIUM}
|
||||||
|
color={color || MainColor.darkblue}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
import Grid from "@/components/Grid/GridCustom";
|
import Grid from "@/components/Grid/GridCustom";
|
||||||
import TextCustom from "@/components/Text/TextCustom";
|
import TextCustom from "@/components/Text/TextCustom";
|
||||||
import { View } from "react-native";
|
|
||||||
import AdminBackButton from "./BackButton";
|
import AdminBackButton from "./BackButton";
|
||||||
|
|
||||||
export default function AdminBackButtonAntTitle({
|
export default function AdminBackButtonAntTitle({
|
||||||
title,
|
title,
|
||||||
|
rightComponent,
|
||||||
}: {
|
}: {
|
||||||
title: string;
|
title: string;
|
||||||
|
rightComponent?: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -22,8 +23,8 @@ export default function AdminBackButtonAntTitle({
|
|||||||
{title}
|
{title}
|
||||||
</TextCustom>
|
</TextCustom>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={2}>
|
<Grid.Col span={2} style={{ alignItems: "flex-end" }}>
|
||||||
<View />
|
{rightComponent}
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import CircleContainer from "@/components/Container/CircleContainer";
|
|||||||
import Grid from "@/components/Grid/GridCustom";
|
import Grid from "@/components/Grid/GridCustom";
|
||||||
import StackCustom from "@/components/Stack/StackCustom";
|
import StackCustom from "@/components/Stack/StackCustom";
|
||||||
import TextCustom from "@/components/Text/TextCustom";
|
import TextCustom from "@/components/Text/TextCustom";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { AccentColor, MainColor } from "@/constants/color-palet";
|
||||||
|
|
||||||
interface BoxDashboardProps {
|
interface BoxDashboardProps {
|
||||||
item: {
|
item: {
|
||||||
@@ -37,7 +37,7 @@ export default function AdminComp_BoxDashboard({ item }: BoxDashboardProps) {
|
|||||||
span={3}
|
span={3}
|
||||||
style={{ alignItems: "flex-start", justifyContent: "center" }}
|
style={{ alignItems: "flex-start", justifyContent: "center" }}
|
||||||
>
|
>
|
||||||
<CircleContainer icon={item.icon} />
|
<CircleContainer style={{ backgroundColor: MainColor.white, borderColor: AccentColor.blue }} icon={item.icon} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
</BaseBox>
|
</BaseBox>
|
||||||
|
|||||||
@@ -17,17 +17,8 @@ export default function AdminComp_BoxTitle({
|
|||||||
paddingTop={5}
|
paddingTop={5}
|
||||||
paddingBottom={5}
|
paddingBottom={5}
|
||||||
>
|
>
|
||||||
{/* <TextCustom
|
|
||||||
// style={{ alignSelf: "center" }}
|
|
||||||
bold
|
|
||||||
size={TEXT_SIZE_LARGE}
|
|
||||||
>
|
|
||||||
{title}
|
|
||||||
</TextCustom>
|
|
||||||
{rightComponent} */}
|
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={6} style={{ justifyContent: "center" }}>
|
<Grid.Col span={rightComponent ? 6 : 12} style={{ justifyContent: "center" }}>
|
||||||
<TextCustom
|
<TextCustom
|
||||||
// style={{ alignSelf: "center" }}
|
// style={{ alignSelf: "center" }}
|
||||||
bold
|
bold
|
||||||
@@ -36,15 +27,17 @@ export default function AdminComp_BoxTitle({
|
|||||||
{title}
|
{title}
|
||||||
</TextCustom>
|
</TextCustom>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col
|
{rightComponent && (
|
||||||
span={6}
|
<Grid.Col
|
||||||
style={{
|
span={6}
|
||||||
justifyContent: "center",
|
style={{
|
||||||
alignItems: "flex-end",
|
justifyContent: "center",
|
||||||
}}
|
alignItems: "flex-end",
|
||||||
>
|
}}
|
||||||
{rightComponent}
|
>
|
||||||
</Grid.Col>
|
{rightComponent}
|
||||||
|
</Grid.Col>
|
||||||
|
)}
|
||||||
</Grid>
|
</Grid>
|
||||||
</BaseBox>
|
</BaseBox>
|
||||||
</>
|
</>
|
||||||
|
|||||||
28
components/_ShareComponent/Admin/TableTitle.tsx
Normal file
28
components/_ShareComponent/Admin/TableTitle.tsx
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import Grid from "@/components/Grid/GridCustom";
|
||||||
|
import TextCustom from "@/components/Text/TextCustom";
|
||||||
|
|
||||||
|
export default function AdminTitleTable({
|
||||||
|
title1,
|
||||||
|
title2,
|
||||||
|
title3,
|
||||||
|
}: {
|
||||||
|
title1: string;
|
||||||
|
title2: string;
|
||||||
|
title3: string;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col span={3} style={{ alignItems: "center", justifyContent: "center" }}>
|
||||||
|
<TextCustom bold align="center">{title1}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={3} style={{ alignItems: "center", justifyContent: "center" }}>
|
||||||
|
<TextCustom bold align="center">{title2}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={6} style={{ alignItems: "center", justifyContent: "center" }}>
|
||||||
|
<TextCustom bold align="center">{title3}</TextCustom>
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
56
components/_ShareComponent/Admin/TableValue.tsx
Normal file
56
components/_ShareComponent/Admin/TableValue.tsx
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
import Grid from "@/components/Grid/GridCustom";
|
||||||
|
import React from "react";
|
||||||
|
import { View } from "react-native";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
|
export default function AdminTableValue({
|
||||||
|
value1,
|
||||||
|
value2,
|
||||||
|
value3,
|
||||||
|
}: {
|
||||||
|
value1: React.ReactNode;
|
||||||
|
value2: React.ReactNode;
|
||||||
|
value3: React.ReactNode;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<View style={{ paddingVertical: 5 }}>
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col
|
||||||
|
span={3}
|
||||||
|
style={{
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
paddingLeft: 5,
|
||||||
|
paddingRight: 5,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{value1}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col
|
||||||
|
span={3}
|
||||||
|
style={{
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
paddingLeft: 5,
|
||||||
|
paddingRight: 5,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{value2}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col
|
||||||
|
span={6}
|
||||||
|
style={{
|
||||||
|
justifyContent: "center",
|
||||||
|
paddingLeft: 5,
|
||||||
|
paddingRight: 5,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{value3}
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
<Divider />
|
||||||
|
</View>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
11
components/_ShareComponent/Admin/TitlePage.tsx
Normal file
11
components/_ShareComponent/Admin/TitlePage.tsx
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import TextCustom from "@/components/Text/TextCustom";
|
||||||
|
|
||||||
|
export default function AdminTitlePage({ title }: { title: string }) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<TextCustom bold size={25}>
|
||||||
|
{title}
|
||||||
|
</TextCustom>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
20
components/_ShareComponent/GridDetail_4_8.tsx
Normal file
20
components/_ShareComponent/GridDetail_4_8.tsx
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { Grid } from "@/components";
|
||||||
|
|
||||||
|
export const GridDetail_4_8 = ({
|
||||||
|
label,
|
||||||
|
value,
|
||||||
|
}: {
|
||||||
|
label: React.ReactNode;
|
||||||
|
value: React.ReactNode;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col span={4} style={{ justifyContent: "center", paddingRight: 10 }}>
|
||||||
|
{label}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col span={8} style={{ justifyContent: "center" }}>
|
||||||
|
{value}
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -17,7 +17,7 @@ export default function SearchInput({
|
|||||||
onPress,
|
onPress,
|
||||||
iconLeft,
|
iconLeft,
|
||||||
iconRight,
|
iconRight,
|
||||||
containerStyle = { marginBottom: 0 },
|
containerStyle,
|
||||||
style,
|
style,
|
||||||
...props
|
...props
|
||||||
}: SearchInputProps) {
|
}: SearchInputProps) {
|
||||||
@@ -32,7 +32,7 @@ export default function SearchInput({
|
|||||||
}
|
}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
borderRadius={50}
|
borderRadius={50}
|
||||||
containerStyle={containerStyle}
|
containerStyle={[containerStyle, { marginBottom: 0 }]}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
import { MainColor, AccentColor } from "@/constants/color-palet";
|
import { AccentColor, MainColor } from "@/constants/color-palet";
|
||||||
import { View } from "react-native";
|
import { View } from "react-native";
|
||||||
import ButtonCustom from "../Button/ButtonCustom";
|
import ButtonCustom from "../Button/ButtonCustom";
|
||||||
import Spacing from "./Spacing";
|
import Spacing from "./Spacing";
|
||||||
|
|
||||||
export default function TabsTwoHeaderCustom ({
|
export default function TabsTwoButtonCustom ({
|
||||||
leftValue,
|
leftValue,
|
||||||
rightValue,
|
rightValue,
|
||||||
leftText,
|
leftText,
|
||||||
rightText,
|
rightText,
|
||||||
activeCategory,
|
activeCategory,
|
||||||
handlePress,
|
handlePress,
|
||||||
|
hideBackground,
|
||||||
}: {
|
}: {
|
||||||
leftValue: string;
|
leftValue: string;
|
||||||
rightValue: string;
|
rightValue: string;
|
||||||
@@ -17,6 +18,7 @@ export default function TabsTwoHeaderCustom ({
|
|||||||
rightText: string;
|
rightText: string;
|
||||||
activeCategory: string | null;
|
activeCategory: string | null;
|
||||||
handlePress: (item: string) => void;
|
handlePress: (item: string) => void;
|
||||||
|
hideBackground?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -25,7 +27,7 @@ export default function TabsTwoHeaderCustom ({
|
|||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
padding: 5,
|
padding: 5,
|
||||||
backgroundColor: MainColor.soft_darkblue,
|
backgroundColor: hideBackground ? "transparent" : MainColor.soft_darkblue,
|
||||||
borderRadius: 50,
|
borderRadius: 50,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
"react-native-reanimated": "~3.17.4",
|
"react-native-reanimated": "~3.17.4",
|
||||||
"react-native-safe-area-context": "5.4.0",
|
"react-native-safe-area-context": "5.4.0",
|
||||||
"react-native-screens": "~4.11.1",
|
"react-native-screens": "~4.11.1",
|
||||||
|
"react-native-toast-message": "^2.3.3",
|
||||||
"react-native-vector-icons": "^10.2.0",
|
"react-native-vector-icons": "^10.2.0",
|
||||||
"react-native-web": "~0.20.0",
|
"react-native-web": "~0.20.0",
|
||||||
"react-native-webview": "13.13.5"
|
"react-native-webview": "13.13.5"
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ const adminListMenu: NavbarItem[] = [
|
|||||||
icon: "desktop-outline",
|
icon: "desktop-outline",
|
||||||
links: [
|
links: [
|
||||||
{ label: "Dashboard", link: "/admin/job" },
|
{ label: "Dashboard", link: "/admin/job" },
|
||||||
{ label: "Publish", link: "/admin/job/publish" },
|
{ label: "Publish", link: "/admin/job/publish/status" },
|
||||||
{ label: "Review", link: "/admin/job/review" },
|
{ label: "Review", link: "/admin/job/review/status" },
|
||||||
{ label: "Reject", link: "/admin/job/reject" },
|
{ label: "Reject", link: "/admin/job/reject/status" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -67,9 +67,9 @@ const adminListMenu: NavbarItem[] = [
|
|||||||
icon: "chatbubble-ellipses-outline",
|
icon: "chatbubble-ellipses-outline",
|
||||||
links: [
|
links: [
|
||||||
{ label: "Dashboard", link: "/admin/forum" },
|
{ label: "Dashboard", link: "/admin/forum" },
|
||||||
{ label: "Posting", link: "/admin/forum/publish" },
|
{ label: "Posting", link: "/admin/forum/posting" },
|
||||||
{ label: "Report Posting", link: "/admin/forum/review" },
|
{ label: "Report Posting", link: "/admin/forum/report-posting" },
|
||||||
{ label: "Report Comment", link: "/admin/forum/reject" },
|
{ label: "Report Comment", link: "/admin/forum/report-comment" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ export default function LoginView() {
|
|||||||
const id = randomAlfabet + randomNumber + fixNumber;
|
const id = randomAlfabet + randomNumber + fixNumber;
|
||||||
console.log("login user id :", id);
|
console.log("login user id :", id);
|
||||||
|
|
||||||
// router.navigate("/verification");
|
router.navigate("/verification");
|
||||||
// router.navigate(`/(application)/(user)/profile/${id}`);
|
// router.navigate(`/(application)/(user)/profile/${id}`);
|
||||||
router.navigate("/(application)/(user)/home");
|
// router.navigate("/(application)/(user)/home");
|
||||||
// router.navigate(`/(application)/profile/${id}/edit`);
|
// router.navigate(`/(application)/profile/${id}/edit`);
|
||||||
// router.navigate(`/(application)/(user)/portofolio/${id}`)
|
// router.navigate(`/(application)/(user)/portofolio/${id}`)
|
||||||
// router.navigate(`/(application)/(image)/preview-image/${id}`);
|
// router.navigate(`/(application)/(image)/preview-image/${id}`);
|
||||||
@@ -84,7 +84,7 @@ export default function LoginView() {
|
|||||||
|
|
||||||
<Spacing />
|
<Spacing />
|
||||||
|
|
||||||
<ButtonCustom onPress={() => router.navigate("/admin/user-access")}>
|
<ButtonCustom onPress={() => router.navigate("/admin/forum")}>
|
||||||
Admin ( Delete Soon )
|
Admin ( Delete Soon )
|
||||||
</ButtonCustom>
|
</ButtonCustom>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user