Compare commits
3 Commits
admin/12-a
...
admin/13-a
| Author | SHA1 | Date | |
|---|---|---|---|
| 0fa6d54dbe | |||
| 40cb0bfc47 | |||
| 52c16b25b7 |
@@ -51,9 +51,6 @@ export default function AdminLayout() {
|
|||||||
<Stack.Screen name="dashboard" />
|
<Stack.Screen name="dashboard" />
|
||||||
{/* ================== Investment Start ================== */}
|
{/* ================== Investment Start ================== */}
|
||||||
<Stack.Screen name="investment/index" />
|
<Stack.Screen name="investment/index" />
|
||||||
<Stack.Screen name="investment/publish" />
|
|
||||||
<Stack.Screen name="investment/review" />
|
|
||||||
<Stack.Screen name="investment/reject" />
|
|
||||||
{/* ================== Investment End ================== */}
|
{/* ================== Investment End ================== */}
|
||||||
|
|
||||||
{/* ================== Maps Start ================== */}
|
{/* ================== Maps Start ================== */}
|
||||||
|
|||||||
259
app/(application)/admin/donation/[id]/[status]/index.tsx
Normal file
259
app/(application)/admin/donation/[id]/[status]/index.tsx
Normal file
@@ -0,0 +1,259 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
ButtonCustom,
|
||||||
|
DrawerCustom,
|
||||||
|
DummyLandscapeImage,
|
||||||
|
MenuDrawerDynamicGrid,
|
||||||
|
ProgressCustom,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconDot, IconList } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
|
||||||
|
import AdminButtonReview from "@/components/_ShareComponent/Admin/ButtonReview";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON, TEXT_SIZE_LARGE } from "@/constants/constans-value";
|
||||||
|
import AdminDonation_BoxOfDonationStory from "@/screens/Admin/Donation/BoxOfDonationStory";
|
||||||
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import _ from "lodash";
|
||||||
|
import React from "react";
|
||||||
|
import { View } from "react-native";
|
||||||
|
|
||||||
|
export default function AdminDonationDetail() {
|
||||||
|
const { id, status } = useLocalSearchParams();
|
||||||
|
const [openDrawer, setOpenDrawer] = React.useState(false);
|
||||||
|
|
||||||
|
const colorBadge = () => {
|
||||||
|
if (status === "publish") {
|
||||||
|
return MainColor.green;
|
||||||
|
} else if (status === "review") {
|
||||||
|
return MainColor.orange;
|
||||||
|
} else if (status === "reject") {
|
||||||
|
return MainColor.red;
|
||||||
|
} else {
|
||||||
|
return MainColor.placeholder;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Penggalang Dana",
|
||||||
|
value: `Bagas Banuna ${id}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Judul",
|
||||||
|
value: `Donasi Lorem ipsum dolor sit amet, consectetur adipisicing elit.`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: (
|
||||||
|
<BadgeCustom color={colorBadge()}>
|
||||||
|
{_.startCase(status as string)}
|
||||||
|
</BadgeCustom>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Durasi",
|
||||||
|
value: "30 Hari",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Target Dana",
|
||||||
|
value: "Rp 10.000.000",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Kategori",
|
||||||
|
value: "Kategori Donasi",
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// label: "Total Donatur",
|
||||||
|
// value: "-",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "Progress",
|
||||||
|
// value: "0 %",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// label: "Dana Terkumpul",
|
||||||
|
// value: "Rp 0",
|
||||||
|
// },
|
||||||
|
];
|
||||||
|
|
||||||
|
const listPencarianDana = [
|
||||||
|
{
|
||||||
|
label: "Total Dana Dicairkan",
|
||||||
|
value: "Rp 0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Sisa Dana",
|
||||||
|
value: "Rp 0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Akumulasi Pencairan",
|
||||||
|
value: "0 kali",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Bank Tujuan",
|
||||||
|
value: "BNI",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Nomor Rekening",
|
||||||
|
value: "123456789",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const rightComponent = (
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconDot size={ICON_SIZE_BUTTON} />}
|
||||||
|
onPress={() => {
|
||||||
|
setOpenDrawer(true);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle
|
||||||
|
title={`Detail Data`}
|
||||||
|
rightComponent={status === "publish" && rightComponent}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{status === "publish" && (
|
||||||
|
<View>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
<TextCustom bold align="center" size={TEXT_SIZE_LARGE}>
|
||||||
|
Pencarian Dana
|
||||||
|
</TextCustom>
|
||||||
|
|
||||||
|
<StackCustom gap={5}>
|
||||||
|
{listPencarianDana.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
<ButtonCustom
|
||||||
|
iconLeft={
|
||||||
|
<Ionicons name="cash-outline" size={ICON_SIZE_BUTTON} />
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/admin/donation/${id}/disbursement-of-funds`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Cairkan Dana
|
||||||
|
</ButtonCustom>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<ProgressCustom size="lg" />
|
||||||
|
<Spacing />
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
<GridDetail_4_8
|
||||||
|
label={<TextCustom bold>Jumlah Donatur</TextCustom>}
|
||||||
|
value={<TextCustom>0 orang</TextCustom>}
|
||||||
|
/>
|
||||||
|
<GridDetail_4_8
|
||||||
|
label={<TextCustom bold>Dana Terkumpul</TextCustom>}
|
||||||
|
value={<TextCustom>Rp 0</TextCustom>}
|
||||||
|
/>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
<DummyLandscapeImage />
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
{status === "review" && (
|
||||||
|
<StackCustom>
|
||||||
|
<AdminDonation_BoxOfDonationStory />
|
||||||
|
|
||||||
|
<AdminButtonReview
|
||||||
|
onPublish={() => {
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Publish",
|
||||||
|
message: "Apakah anda yakin ingin mempublikasikan data ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Ya",
|
||||||
|
onPressLeft: () => {
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
onPressRight: () => {
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
onReject={() => {
|
||||||
|
router.push(`/admin/donation/${id}/reject-input`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</StackCustom>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{status === "reject" && (
|
||||||
|
<StackCustom>
|
||||||
|
<AdminDonation_BoxOfDonationStory />
|
||||||
|
|
||||||
|
<AdminButtonReject
|
||||||
|
title="Tambah Catatan"
|
||||||
|
onReject={() => {
|
||||||
|
router.push(`/admin/donation/${id}/reject-input`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</StackCustom>
|
||||||
|
)}
|
||||||
|
</ViewWrapper>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawer}
|
||||||
|
closeDrawer={() => setOpenDrawer(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
<MenuDrawerDynamicGrid
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
label: "Daftar Donatur",
|
||||||
|
icon: <IconList />,
|
||||||
|
path: `/admin/donation/${id}/list-of-donatur`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Daftar Pencarian Dana",
|
||||||
|
icon: <IconList />,
|
||||||
|
path: `/admin/donation/${id}/list-disbursement-of-funds`,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
onPressItem={(item) => {
|
||||||
|
setOpenDrawer(false);
|
||||||
|
router.push(item.path as any);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</DrawerCustom>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
import {
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
BoxButtonOnFooter,
|
||||||
|
ButtonCustom,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminDonasiTransactionDetail() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
|
||||||
|
const buttonAction = (
|
||||||
|
<BoxButtonOnFooter>
|
||||||
|
<ButtonCustom onPress={() => router.back()}>Terima</ButtonCustom>
|
||||||
|
</BoxButtonOnFooter>
|
||||||
|
);
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Donatur",
|
||||||
|
value: "Bagas Banuna",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Bank",
|
||||||
|
value: "BCA",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Jumlah Donasi",
|
||||||
|
value: "Rp. 1.000.000",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: <BadgeCustom color={MainColor.green}>Berhasil</BadgeCustom>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Tanggal",
|
||||||
|
value: dayjs().format("DD-MM-YYYY HH:mm:ss"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Bukti Transfer",
|
||||||
|
value: (
|
||||||
|
<ButtonCustom
|
||||||
|
onPress={() =>
|
||||||
|
router.push(`/(application)/(image)/preview-image/${id}`)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Cek
|
||||||
|
</ButtonCustom>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title="Detail Transaksi" />}
|
||||||
|
footerComponent={buttonAction}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
{listData.map((item, index) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={index}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import {
|
||||||
|
BaseBox,
|
||||||
|
ButtonCustom,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminDonationDetailDisbursementOfFunds() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Nominal",
|
||||||
|
value: "Rp 1.000.000",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Tanggal",
|
||||||
|
value: dayjs().format("DD-MM-YYYY HH:mm"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Judul",
|
||||||
|
value: `Judul Pencairan Dana ${id}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Deskripsi",
|
||||||
|
value: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque velit eos facere a dicta nemo repellendus harum laboriosam quos, earum reprehenderit. Nisi sapiente, quo earum quis alias ullam temporibus quidem.`,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle title="Detail Pencairan Dana" />
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
{listData.map((item, index) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={index}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
<ButtonCustom
|
||||||
|
onPress={() =>
|
||||||
|
router.push(`/(application)/(image)/preview-image/${id}`)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Cek Bukti Transaksi
|
||||||
|
</ButtonCustom>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
import {
|
||||||
|
BaseBox,
|
||||||
|
BoxButtonOnFooter,
|
||||||
|
ButtonCenteredOnly,
|
||||||
|
ButtonCustom,
|
||||||
|
InformationBox,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextAreaCustom,
|
||||||
|
TextCustom,
|
||||||
|
TextInputCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminDonationDisbursementOfFunds() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
const handleSubmit = (
|
||||||
|
<BoxButtonOnFooter>
|
||||||
|
<ButtonCustom
|
||||||
|
onPress={() => {
|
||||||
|
router.back();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Simpan
|
||||||
|
</ButtonCustom>
|
||||||
|
</BoxButtonOnFooter>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title="Pencairan Dana" />}
|
||||||
|
footerComponent={handleSubmit}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom gap="md">
|
||||||
|
<TextCustom align="center" bold size="large">
|
||||||
|
Dana Tersisa
|
||||||
|
</TextCustom>
|
||||||
|
<TextCustom align="center" bold size="large">
|
||||||
|
Rp 1.000.000
|
||||||
|
</TextCustom>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<TextCustom bold size="large" align="center">
|
||||||
|
Form Pencairan Dana
|
||||||
|
</TextCustom>
|
||||||
|
<Spacing />
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
<TextInputCustom
|
||||||
|
required
|
||||||
|
keyboardType="numeric"
|
||||||
|
label="Nominal"
|
||||||
|
placeholder="0"
|
||||||
|
iconLeft={"Rp"}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextInputCustom required label="Judul" placeholder="Masukan judul" />
|
||||||
|
|
||||||
|
<TextAreaCustom
|
||||||
|
required
|
||||||
|
label="Deskripsi"
|
||||||
|
placeholder="Masukan deskripsi"
|
||||||
|
showCount
|
||||||
|
maxLength={500}
|
||||||
|
/>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
<InformationBox text="Wajib menyertakan bukti transfer" />
|
||||||
|
|
||||||
|
<ButtonCenteredOnly
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/(application)/(image)/take-picture/${id}`);
|
||||||
|
}}
|
||||||
|
icon="upload"
|
||||||
|
>
|
||||||
|
Upload
|
||||||
|
</ButtonCenteredOnly>
|
||||||
|
<Spacing />
|
||||||
|
</ViewWrapper>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
CenterCustom,
|
||||||
|
Divider,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper
|
||||||
|
} from "@/components";
|
||||||
|
import { IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { GridViewCustomSpan } from "@/components/_ShareComponent/GridViewCustomSpan";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import { View } from "react-native";
|
||||||
|
|
||||||
|
export default function AdminDonasiListOfDisbursementOfFunds() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle title="Daftar Pencairan Dana" />
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<GridViewCustomSpan
|
||||||
|
span1={3}
|
||||||
|
span2={5}
|
||||||
|
span3={4}
|
||||||
|
component1={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Aksi
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component2={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Tanggal
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component3={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Nominal
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
<StackCustom>
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<View key={index}>
|
||||||
|
<GridViewCustomSpan
|
||||||
|
span1={3}
|
||||||
|
span2={5}
|
||||||
|
span3={4}
|
||||||
|
component1={
|
||||||
|
<CenterCustom>
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconView size={ICON_SIZE_BUTTON} color="black" />}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(
|
||||||
|
`/admin/donation/${id}/detail-disbursement-of-funds`
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</CenterCustom>
|
||||||
|
}
|
||||||
|
component2={
|
||||||
|
<TextCustom bold align="center" truncate>
|
||||||
|
{dayjs()
|
||||||
|
.add(index + 1, "day")
|
||||||
|
.format("DD-MM-YYYY HH:mm")}
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component3={<TextCustom>Rp. 1.000.000</TextCustom>}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
</View>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
101
app/(application)/admin/donation/[id]/list-of-donatur.tsx
Normal file
101
app/(application)/admin/donation/[id]/list-of-donatur.tsx
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BadgeCustom,
|
||||||
|
CenterCustom,
|
||||||
|
SelectCustom,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { GridViewCustomSpan } from "@/components/_ShareComponent/GridViewCustomSpan";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { dummyMasterStatusTransaction } from "@/lib/dummy-data/_master/status-transaction";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import React from "react";
|
||||||
|
import { View } from "react-native";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
|
export default function AdminDonasiListOfDonatur() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
const searchComponent = (
|
||||||
|
<View style={{ flexDirection: "row", gap: 5 }}>
|
||||||
|
<SelectCustom
|
||||||
|
placeholder="Pilih status transaksi"
|
||||||
|
data={dummyMasterStatusTransaction}
|
||||||
|
onChange={(value) => console.log(value)}
|
||||||
|
styleContainer={{ width: "100%", marginBottom: 0 }}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle newComponent={searchComponent} />
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<GridViewCustomSpan
|
||||||
|
span1={3}
|
||||||
|
span2={5}
|
||||||
|
span3={4}
|
||||||
|
component1={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Aksi
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component2={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Donatur
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component3={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Status
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
<StackCustom>
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<View key={index}>
|
||||||
|
<GridViewCustomSpan
|
||||||
|
span1={3}
|
||||||
|
span2={5}
|
||||||
|
span3={4}
|
||||||
|
component1={
|
||||||
|
<CenterCustom>
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconView size={ICON_SIZE_BUTTON} color="black" />}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(
|
||||||
|
`/admin/donation/${id}/berhasil/transaction-detail`
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</CenterCustom>
|
||||||
|
}
|
||||||
|
component2={
|
||||||
|
<TextCustom bold align="center" truncate>
|
||||||
|
Bagas Banuna
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component3={
|
||||||
|
<BadgeCustom
|
||||||
|
style={{ alignSelf: "center" }}
|
||||||
|
color={MainColor.green}
|
||||||
|
>
|
||||||
|
Berhasil
|
||||||
|
</BadgeCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
</View>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
55
app/(application)/admin/donation/[id]/reject-input.tsx
Normal file
55
app/(application)/admin/donation/[id]/reject-input.tsx
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import {
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BoxButtonOnFooter,
|
||||||
|
TextAreaCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
|
export default function AdminDonationRejectInput() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
const [value, setValue] = useState(id as string);
|
||||||
|
const buttonSubmit = (
|
||||||
|
<BoxButtonOnFooter>
|
||||||
|
<AdminButtonReject
|
||||||
|
title="Reject"
|
||||||
|
onReject={() =>
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Reject",
|
||||||
|
message: "Apakah anda yakin ingin menolak data ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Ya",
|
||||||
|
onPressLeft: () => {
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
onPressRight: () => {
|
||||||
|
console.log("value:", value);
|
||||||
|
router.replace(`/admin/donation/reject/status`);
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</BoxButtonOnFooter>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
footerComponent={buttonSubmit}
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title="Penolakan Donasi" />}
|
||||||
|
>
|
||||||
|
<TextAreaCustom
|
||||||
|
value={value}
|
||||||
|
onChangeText={setValue}
|
||||||
|
placeholder="Masukan alasan"
|
||||||
|
required
|
||||||
|
showCount
|
||||||
|
maxLength={1000}
|
||||||
|
/>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,18 +1,16 @@
|
|||||||
import {
|
import {
|
||||||
ActionIcon,
|
ActionIcon,
|
||||||
BaseBox,
|
|
||||||
SearchInput,
|
SearchInput,
|
||||||
Spacing,
|
Spacing,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
ViewWrapper,
|
ViewWrapper
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
import AdminTitleTable from "@/components/_ShareComponent/Admin/TableTitle";
|
||||||
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
import AdminTableValue from "@/components/_ShareComponent/Admin/TableValue";
|
||||||
import AdminTitlePage from "@/components/_ShareComponent/Admin/TitlePage";
|
|
||||||
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
import { Octicons } from "@expo/vector-icons";
|
import { Octicons } from "@expo/vector-icons";
|
||||||
import { useLocalSearchParams } from "expo-router";
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import { Divider } from "react-native-paper";
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
@@ -26,50 +24,46 @@ export default function AdminDonationStatus() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper headerComponent={<AdminTitlePage title="Donasi" />}>
|
<ViewWrapper
|
||||||
<AdminComp_BoxTitle
|
headerComponent={
|
||||||
title={`${_.startCase(status as string)}`}
|
<AdminComp_BoxTitle
|
||||||
rightComponent={rightComponent}
|
title={`Donasi ${_.startCase(status as string)}`}
|
||||||
/>
|
rightComponent={rightComponent}
|
||||||
|
|
||||||
<BaseBox>
|
|
||||||
<AdminTitleTable
|
|
||||||
title1="Aksi"
|
|
||||||
title2="Username"
|
|
||||||
title3="Judul Donasi"
|
|
||||||
/>
|
/>
|
||||||
<Spacing />
|
}
|
||||||
<Divider />
|
>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Judul Donasi"
|
||||||
|
/>
|
||||||
|
<Spacing />
|
||||||
|
<Divider />
|
||||||
|
|
||||||
{Array.from({ length: 10 }).map((_, index) => (
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
<AdminTableValue
|
<AdminTableValue
|
||||||
key={index}
|
key={index}
|
||||||
value1={
|
value1={
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon={
|
icon={
|
||||||
<Octicons
|
<Octicons name="eye" size={ICON_SIZE_BUTTON} color="black" />
|
||||||
name="eye"
|
}
|
||||||
size={ICON_SIZE_BUTTON}
|
onPress={() => {
|
||||||
color="black"
|
router.push(`/admin/donation/${index}/${status}`);
|
||||||
/>
|
}}
|
||||||
}
|
/>
|
||||||
onPress={() => {
|
}
|
||||||
// router.push(`/admin/donation/${index}/${status}`);
|
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
||||||
}}
|
value3={
|
||||||
/>
|
<TextCustom truncate={2}>
|
||||||
}
|
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||||
value2={<TextCustom truncate={1}>Username username</TextCustom>}
|
Blanditiis asperiores quidem deleniti architecto eaque et
|
||||||
value3={
|
nostrum, ad consequuntur eveniet quisquam quae voluptatum
|
||||||
<TextCustom truncate={2}>
|
ducimus! Dolorem nobis modi officia debitis, beatae mollitia.
|
||||||
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
</TextCustom>
|
||||||
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>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default function AdminEventRejectInput() {
|
|||||||
<>
|
<>
|
||||||
<ViewWrapper
|
<ViewWrapper
|
||||||
footerComponent={buttonSubmit}
|
footerComponent={buttonSubmit}
|
||||||
headerComponent={<AdminBackButtonAntTitle title="Masukan Alasan" />}
|
headerComponent={<AdminBackButtonAntTitle title="Penolakan Event" />}
|
||||||
>
|
>
|
||||||
<TextAreaCustom
|
<TextAreaCustom
|
||||||
value={value}
|
value={value}
|
||||||
|
|||||||
244
app/(application)/admin/investment/[id]/[status]/index.tsx
Normal file
244
app/(application)/admin/investment/[id]/[status]/index.tsx
Normal file
@@ -0,0 +1,244 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
ButtonCustom,
|
||||||
|
DrawerCustom,
|
||||||
|
DummyLandscapeImage,
|
||||||
|
MenuDrawerDynamicGrid,
|
||||||
|
ProgressCustom,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper
|
||||||
|
} from "@/components";
|
||||||
|
import { IconProspectus } from "@/components/_Icon";
|
||||||
|
import { IconDot, IconList } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
|
||||||
|
import AdminButtonReview from "@/components/_ShareComponent/Admin/ButtonReview";
|
||||||
|
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, useLocalSearchParams } from "expo-router";
|
||||||
|
import _ from "lodash";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export default function AdminInvestmentDetail() {
|
||||||
|
const { id, status } = useLocalSearchParams();
|
||||||
|
const [openDrawer, setOpenDrawer] = React.useState(false);
|
||||||
|
|
||||||
|
const colorBadge = () => {
|
||||||
|
if (status === "publish") {
|
||||||
|
return MainColor.green;
|
||||||
|
} else if (status === "review") {
|
||||||
|
return MainColor.orange;
|
||||||
|
} else if (status === "reject") {
|
||||||
|
return MainColor.red;
|
||||||
|
} else {
|
||||||
|
return MainColor.placeholder;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Username",
|
||||||
|
value: `Bagas Banuna ${id}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Judul",
|
||||||
|
value: `Donasi Lorem ipsum dolor sit amet, consectetur adipisicing elit.`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: (
|
||||||
|
<BadgeCustom color={colorBadge()}>
|
||||||
|
{_.startCase(status as string)}
|
||||||
|
</BadgeCustom>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Dana Dibutuhkan",
|
||||||
|
value: "Rp 10.000.000",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Harga Perlembar",
|
||||||
|
value: "Rp 2500",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Total Lembar",
|
||||||
|
value: "2490 lembar",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "ROI",
|
||||||
|
value: "4 %",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Pembagian Deviden",
|
||||||
|
value: "3 bulan",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Jadwal Pembagian",
|
||||||
|
value: "Selamanya",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Pencarian Investor",
|
||||||
|
value: "30 Hari",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const rightComponent = (
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconDot size={ICON_SIZE_BUTTON} />}
|
||||||
|
onPress={() => {
|
||||||
|
setOpenDrawer(true);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminBackButtonAntTitle
|
||||||
|
title={`Detail Data`}
|
||||||
|
rightComponent={status === "publish" && rightComponent}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{status === "publish" && (
|
||||||
|
<BaseBox>
|
||||||
|
<ProgressCustom size="lg" />
|
||||||
|
<Spacing />
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
<GridDetail_4_8
|
||||||
|
label={<TextCustom bold>Sisa Saham</TextCustom>}
|
||||||
|
value={<TextCustom>2490 lembar</TextCustom>}
|
||||||
|
/>
|
||||||
|
<GridDetail_4_8
|
||||||
|
label={<TextCustom bold>Validasi Transaksi</TextCustom>}
|
||||||
|
value={<TextCustom>4 Transaksi</TextCustom>}
|
||||||
|
/>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
<DummyLandscapeImage />
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={i}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
<GridDetail_4_8
|
||||||
|
label={<TextCustom bold>File Prospektus</TextCustom>}
|
||||||
|
value={
|
||||||
|
<ButtonCustom
|
||||||
|
iconLeft={
|
||||||
|
<IconProspectus
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color={MainColor.darkblue}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/(application)/(file)/${id}`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Preview
|
||||||
|
</ButtonCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<GridDetail_4_8
|
||||||
|
label={<TextCustom bold>File Dokumen</TextCustom>}
|
||||||
|
value={
|
||||||
|
<StackCustom>
|
||||||
|
{Array.from({ length: 5 }).map((_, i) => (
|
||||||
|
<ButtonCustom
|
||||||
|
key={i}
|
||||||
|
iconLeft={
|
||||||
|
<IconProspectus
|
||||||
|
size={ICON_SIZE_BUTTON}
|
||||||
|
color={MainColor.darkblue}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(`/(application)/(file)/${id}`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Dokumen {i + 1}
|
||||||
|
</ButtonCustom>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
|
||||||
|
{status === "review" && (
|
||||||
|
<AdminButtonReview
|
||||||
|
onPublish={() => {
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Publish",
|
||||||
|
message: "Apakah anda yakin ingin mempublikasikan data ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Ya",
|
||||||
|
onPressLeft: () => {
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
onPressRight: () => {
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
onReject={() => {
|
||||||
|
router.push(`/admin/investment/${id}/reject-input`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{status === "reject" && (
|
||||||
|
<AdminButtonReject
|
||||||
|
title="Tambah Catatan"
|
||||||
|
onReject={() => {
|
||||||
|
router.push(`/admin/investment/${id}/reject-input`);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</ViewWrapper>
|
||||||
|
|
||||||
|
<DrawerCustom
|
||||||
|
isVisible={openDrawer}
|
||||||
|
closeDrawer={() => setOpenDrawer(false)}
|
||||||
|
height={"auto"}
|
||||||
|
>
|
||||||
|
<MenuDrawerDynamicGrid
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
label: "Daftar Investor",
|
||||||
|
icon: <IconList />,
|
||||||
|
path: `/admin/investment/${id}/list-of-investor`,
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// label: "Daftar Pencarian Dana",
|
||||||
|
// icon: <IconList />,
|
||||||
|
// path: `/admin/donation/${id}/list-disbursement-of-funds`,
|
||||||
|
// },
|
||||||
|
]}
|
||||||
|
onPressItem={(item) => {
|
||||||
|
setOpenDrawer(false);
|
||||||
|
router.push(item.path as any);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</DrawerCustom>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
import {
|
||||||
|
BadgeCustom,
|
||||||
|
BaseBox,
|
||||||
|
BoxButtonOnFooter,
|
||||||
|
ButtonCustom,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { GridDetail_4_8 } from "@/components/_ShareComponent/GridDetail_4_8";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
|
||||||
|
export default function AdminInvestmentTransactionDetail() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
|
||||||
|
const buttonAction = (
|
||||||
|
<BoxButtonOnFooter>
|
||||||
|
<ButtonCustom onPress={() => router.back()}>Terima</ButtonCustom>
|
||||||
|
</BoxButtonOnFooter>
|
||||||
|
);
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Investor",
|
||||||
|
value: "Bagas Banuna",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Bank",
|
||||||
|
value: "BCA",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Jumlah Investasi",
|
||||||
|
value: "Rp. 1.000.000",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Status",
|
||||||
|
value: <BadgeCustom color={MainColor.green}>Berhasil</BadgeCustom>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Tanggal",
|
||||||
|
value: dayjs().format("DD-MM-YYYY HH:mm:ss"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Bukti Transfer",
|
||||||
|
value: (
|
||||||
|
<ButtonCustom
|
||||||
|
onPress={() =>
|
||||||
|
router.push(`/(application)/(image)/preview-image/${id}`)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Cek
|
||||||
|
</ButtonCustom>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title="Detail Transaksi Investor" />}
|
||||||
|
footerComponent={buttonAction}
|
||||||
|
>
|
||||||
|
<BaseBox>
|
||||||
|
<StackCustom>
|
||||||
|
{listData.map((item, index) => (
|
||||||
|
<GridDetail_4_8
|
||||||
|
key={index}
|
||||||
|
label={<TextCustom bold>{item.label}</TextCustom>}
|
||||||
|
value={<TextCustom>{item.value}</TextCustom>}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
107
app/(application)/admin/investment/[id]/list-of-investor.tsx
Normal file
107
app/(application)/admin/investment/[id]/list-of-investor.tsx
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
BadgeCustom,
|
||||||
|
CenterCustom,
|
||||||
|
SelectCustom,
|
||||||
|
StackCustom,
|
||||||
|
TextCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import { IconView } from "@/components/_Icon/IconComponent";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import { GridViewCustomSpan } from "@/components/_ShareComponent/GridViewCustomSpan";
|
||||||
|
import { MainColor } from "@/constants/color-palet";
|
||||||
|
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
|
||||||
|
import { dummyMasterStatusTransaction } from "@/lib/dummy-data/_master/status-transaction";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import React from "react";
|
||||||
|
import { View } from "react-native";
|
||||||
|
import { Divider } from "react-native-paper";
|
||||||
|
|
||||||
|
export default function AdminInvestmentListOfInvestor() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
const searchComponent = (
|
||||||
|
<View style={{ flexDirection: "row", gap: 5 }}>
|
||||||
|
<SelectCustom
|
||||||
|
placeholder="Pilih status transaksi"
|
||||||
|
data={dummyMasterStatusTransaction}
|
||||||
|
onChange={(value) => console.log(value)}
|
||||||
|
styleContainer={{ width: "100%", marginBottom: 0 }}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
|
||||||
|
const headerComponent = (
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
<AdminBackButtonAntTitle title="Daftar Investor" />
|
||||||
|
{searchComponent}
|
||||||
|
</StackCustom>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={headerComponent}
|
||||||
|
>
|
||||||
|
<GridViewCustomSpan
|
||||||
|
span1={3}
|
||||||
|
span2={5}
|
||||||
|
span3={4}
|
||||||
|
component1={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Aksi
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component2={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Investor
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component3={
|
||||||
|
<TextCustom bold align="center">
|
||||||
|
Status
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
<StackCustom>
|
||||||
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
|
<View key={index}>
|
||||||
|
<GridViewCustomSpan
|
||||||
|
span1={3}
|
||||||
|
span2={5}
|
||||||
|
span3={4}
|
||||||
|
component1={
|
||||||
|
<CenterCustom>
|
||||||
|
<ActionIcon
|
||||||
|
icon={<IconView size={ICON_SIZE_BUTTON} color="black" />}
|
||||||
|
onPress={() => {
|
||||||
|
router.push(
|
||||||
|
`/admin/investment/${id}/berhasil/transaction-detail`
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</CenterCustom>
|
||||||
|
}
|
||||||
|
component2={
|
||||||
|
<TextCustom bold align="center" truncate>
|
||||||
|
Bagas Banuna
|
||||||
|
</TextCustom>
|
||||||
|
}
|
||||||
|
component3={
|
||||||
|
<BadgeCustom
|
||||||
|
style={{ alignSelf: "center" }}
|
||||||
|
color={MainColor.green}
|
||||||
|
>
|
||||||
|
Berhasil
|
||||||
|
</BadgeCustom>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Divider />
|
||||||
|
</View>
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
55
app/(application)/admin/investment/[id]/reject-input.tsx
Normal file
55
app/(application)/admin/investment/[id]/reject-input.tsx
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import {
|
||||||
|
AlertDefaultSystem,
|
||||||
|
BoxButtonOnFooter,
|
||||||
|
TextAreaCustom,
|
||||||
|
ViewWrapper,
|
||||||
|
} from "@/components";
|
||||||
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
|
import AdminButtonReject from "@/components/_ShareComponent/Admin/ButtonReject";
|
||||||
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
|
export default function AdminInvestmentRejectInput() {
|
||||||
|
const { id } = useLocalSearchParams();
|
||||||
|
const [value, setValue] = useState(id as string);
|
||||||
|
const buttonSubmit = (
|
||||||
|
<BoxButtonOnFooter>
|
||||||
|
<AdminButtonReject
|
||||||
|
title="Reject"
|
||||||
|
onReject={() =>
|
||||||
|
AlertDefaultSystem({
|
||||||
|
title: "Reject",
|
||||||
|
message: "Apakah anda yakin ingin menolak data ini?",
|
||||||
|
textLeft: "Batal",
|
||||||
|
textRight: "Ya",
|
||||||
|
onPressLeft: () => {
|
||||||
|
router.back();
|
||||||
|
},
|
||||||
|
onPressRight: () => {
|
||||||
|
console.log("value:", value);
|
||||||
|
router.replace(`/admin/investment/reject/status`);
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</BoxButtonOnFooter>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
footerComponent={buttonSubmit}
|
||||||
|
headerComponent={<AdminBackButtonAntTitle title="Penolakan Investasi" />}
|
||||||
|
>
|
||||||
|
<TextAreaCustom
|
||||||
|
value={value}
|
||||||
|
onChangeText={setValue}
|
||||||
|
placeholder="Masukan alasan"
|
||||||
|
required
|
||||||
|
showCount
|
||||||
|
maxLength={1000}
|
||||||
|
/>
|
||||||
|
</ViewWrapper>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
70
app/(application)/admin/investment/[status]/status.tsx
Normal file
70
app/(application)/admin/investment/[status]/status.tsx
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
import {
|
||||||
|
ActionIcon,
|
||||||
|
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 { 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 AdminInvestmentStatus() {
|
||||||
|
const { status } = useLocalSearchParams();
|
||||||
|
const rightComponent = (
|
||||||
|
<SearchInput
|
||||||
|
containerStyle={{ width: "100%", marginBottom: 0 }}
|
||||||
|
placeholder="Cari"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ViewWrapper
|
||||||
|
headerComponent={
|
||||||
|
<AdminComp_BoxTitle
|
||||||
|
title={`Investasi ${_.startCase(status as string)}`}
|
||||||
|
rightComponent={rightComponent}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<AdminTitleTable
|
||||||
|
title1="Aksi"
|
||||||
|
title2="Username"
|
||||||
|
title3="Judul Investasi"
|
||||||
|
/>
|
||||||
|
<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/investment/${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>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</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 AdminInvestment() {
|
export default function AdminInvestment() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper>
|
<ViewWrapper>
|
||||||
<TextCustom>Admin Investment</TextCustom>
|
<AdminTitlePage title="Investasi" />
|
||||||
|
<Spacing />
|
||||||
|
<StackCustom gap={"xs"}>
|
||||||
|
{listData.map((item, i) => (
|
||||||
|
<AdminComp_BoxDashboard key={i} item={item} />
|
||||||
|
))}
|
||||||
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const listData = [
|
||||||
|
{
|
||||||
|
label: "Publish",
|
||||||
|
value: 3,
|
||||||
|
icon: <IconPublish size={25} color={MainColor.green} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Review",
|
||||||
|
value: 5,
|
||||||
|
icon: <IconReview size={25} color={MainColor.orange} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Reject",
|
||||||
|
value: 8,
|
||||||
|
icon: <IconReject size={25} color={MainColor.red} />,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
|
||||||
|
|
||||||
export default function AdminInvestmentPublish() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ViewWrapper>
|
|
||||||
<TextCustom>Admin Investment Publish</TextCustom>
|
|
||||||
</ViewWrapper>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
|
||||||
|
|
||||||
export default function AdminInvestmentReject() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ViewWrapper>
|
|
||||||
<TextCustom>Admin Investment Reject</TextCustom>
|
|
||||||
</ViewWrapper>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import { TextCustom, ViewWrapper } from "@/components";
|
|
||||||
|
|
||||||
export default function AdminInvestmentReview() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<ViewWrapper>
|
|
||||||
<TextCustom>Admin Investment Review</TextCustom>
|
|
||||||
</ViewWrapper>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -39,7 +39,7 @@ export default function AdminJobRejectInput() {
|
|||||||
<>
|
<>
|
||||||
<ViewWrapper
|
<ViewWrapper
|
||||||
footerComponent={buttonSubmit}
|
footerComponent={buttonSubmit}
|
||||||
headerComponent={<AdminBackButtonAntTitle title="Masukan Alasan" />}
|
headerComponent={<AdminBackButtonAntTitle title="Penolakan Job" />}
|
||||||
>
|
>
|
||||||
<TextAreaCustom
|
<TextAreaCustom
|
||||||
value={value}
|
value={value}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default function AdminVotingRejectInput() {
|
|||||||
<>
|
<>
|
||||||
<ViewWrapper
|
<ViewWrapper
|
||||||
footerComponent={buttonSubmit}
|
footerComponent={buttonSubmit}
|
||||||
headerComponent={<AdminBackButtonAntTitle title="Masukan Alasan" />}
|
headerComponent={<AdminBackButtonAntTitle title="Penolakan Voting" />}
|
||||||
>
|
>
|
||||||
<TextAreaCustom
|
<TextAreaCustom
|
||||||
value={value}
|
value={value}
|
||||||
|
|||||||
@@ -5,9 +5,11 @@ import {
|
|||||||
FlatList,
|
FlatList,
|
||||||
Modal,
|
Modal,
|
||||||
Pressable,
|
Pressable,
|
||||||
|
StyleProp,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View,
|
View,
|
||||||
|
ViewStyle,
|
||||||
} from "react-native";
|
} from "react-native";
|
||||||
|
|
||||||
type SelectItem = {
|
type SelectItem = {
|
||||||
@@ -24,6 +26,7 @@ type SelectProps = {
|
|||||||
disabled?: boolean; // <-- tambahkan prop disabled
|
disabled?: boolean; // <-- tambahkan prop disabled
|
||||||
onChange: (value: string | number) => void;
|
onChange: (value: string | number) => void;
|
||||||
borderRadius?: number;
|
borderRadius?: number;
|
||||||
|
styleContainer?: StyleProp<ViewStyle>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const SelectCustom: React.FC<SelectProps> = ({
|
const SelectCustom: React.FC<SelectProps> = ({
|
||||||
@@ -35,6 +38,7 @@ const SelectCustom: React.FC<SelectProps> = ({
|
|||||||
disabled = false, // <-- default false
|
disabled = false, // <-- default false
|
||||||
onChange,
|
onChange,
|
||||||
borderRadius = 8,
|
borderRadius = 8,
|
||||||
|
styleContainer,
|
||||||
}) => {
|
}) => {
|
||||||
const [modalVisible, setModalVisible] = useState(false);
|
const [modalVisible, setModalVisible] = useState(false);
|
||||||
|
|
||||||
@@ -43,7 +47,7 @@ const SelectCustom: React.FC<SelectProps> = ({
|
|||||||
const hasError = required && value === null; // <-- check if empty and required
|
const hasError = required && value === null; // <-- check if empty and required
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={GStyles.inputContainerArea}>
|
<View style={[GStyles.inputContainerArea, styleContainer]}>
|
||||||
{label && (
|
{label && (
|
||||||
<Text style={GStyles.inputLabel}>
|
<Text style={GStyles.inputLabel}>
|
||||||
{label}
|
{label}
|
||||||
@@ -52,7 +56,7 @@ const SelectCustom: React.FC<SelectProps> = ({
|
|||||||
)}
|
)}
|
||||||
<Pressable
|
<Pressable
|
||||||
style={[
|
style={[
|
||||||
{ borderRadius },
|
{ borderRadius, },
|
||||||
hasError ? GStyles.inputErrorBorder : null,
|
hasError ? GStyles.inputErrorBorder : null,
|
||||||
GStyles.inputContainerInput,
|
GStyles.inputContainerInput,
|
||||||
disabled && GStyles.disabledBox,
|
disabled && GStyles.disabledBox,
|
||||||
|
|||||||
@@ -5,28 +5,37 @@ import AdminBackButton from "./BackButton";
|
|||||||
export default function AdminBackButtonAntTitle({
|
export default function AdminBackButtonAntTitle({
|
||||||
title,
|
title,
|
||||||
rightComponent,
|
rightComponent,
|
||||||
|
newComponent,
|
||||||
}: {
|
}: {
|
||||||
title: string;
|
title?: string;
|
||||||
rightComponent?: React.ReactNode;
|
rightComponent?: React.ReactNode;
|
||||||
|
newComponent?: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={2}>
|
<Grid.Col span={2} style={{ justifyContent: "center" }}>
|
||||||
<AdminBackButton />
|
<AdminBackButton />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col
|
<Grid.Col
|
||||||
span={8}
|
span={newComponent ? 10 : 8}
|
||||||
style={{ alignItems: "center", justifyContent: "center" }}
|
style={{ alignItems: "center", justifyContent: "center" }}
|
||||||
>
|
>
|
||||||
|
{newComponent ? (
|
||||||
|
newComponent
|
||||||
|
) : (
|
||||||
<TextCustom bold size={"large"} align="center">
|
<TextCustom bold size={"large"} align="center">
|
||||||
{title}
|
{title}
|
||||||
</TextCustom>
|
</TextCustom>
|
||||||
</Grid.Col>
|
)}
|
||||||
<Grid.Col span={2} style={{ alignItems: "flex-end" }}>
|
</Grid.Col>
|
||||||
{rightComponent}
|
<Grid.Col
|
||||||
</Grid.Col>
|
span={newComponent ? 0 : 2}
|
||||||
</Grid>
|
style={{ alignItems: "flex-end" }}
|
||||||
</>
|
>
|
||||||
);
|
{rightComponent}
|
||||||
}
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
40
components/_ShareComponent/GridViewCustomSpan.tsx
Normal file
40
components/_ShareComponent/GridViewCustomSpan.tsx
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import { Grid } from "@/components";
|
||||||
|
|
||||||
|
export const GridViewCustomSpan = ({
|
||||||
|
span1,
|
||||||
|
span2,
|
||||||
|
span3,
|
||||||
|
component1,
|
||||||
|
component2,
|
||||||
|
component3,
|
||||||
|
}: {
|
||||||
|
span1: number;
|
||||||
|
span2: number;
|
||||||
|
span3: number;
|
||||||
|
component1: React.ReactNode;
|
||||||
|
component2: React.ReactNode;
|
||||||
|
component3: React.ReactNode;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col
|
||||||
|
span={span1 || 4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 5, paddingLeft: 5 }}
|
||||||
|
>
|
||||||
|
{component1}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col
|
||||||
|
span={span2 || 4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 5, paddingLeft: 5 }}
|
||||||
|
>
|
||||||
|
{component2}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col
|
||||||
|
span={span3 || 4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 5, paddingLeft: 5 }}
|
||||||
|
>
|
||||||
|
{component3}
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
|
};
|
||||||
34
components/_ShareComponent/GridView_4_4_4.tsx
Normal file
34
components/_ShareComponent/GridView_4_4_4.tsx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import { Grid } from "@/components";
|
||||||
|
|
||||||
|
export const GridView_4_4_4 = ({
|
||||||
|
component1,
|
||||||
|
component2,
|
||||||
|
component3,
|
||||||
|
}: {
|
||||||
|
component1: React.ReactNode;
|
||||||
|
component2: React.ReactNode;
|
||||||
|
component3: React.ReactNode;
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<Grid>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 5, paddingLeft: 5 }}
|
||||||
|
>
|
||||||
|
{component1}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 5, paddingLeft: 5 }}
|
||||||
|
>
|
||||||
|
{component2}
|
||||||
|
</Grid.Col>
|
||||||
|
<Grid.Col
|
||||||
|
span={4}
|
||||||
|
style={{ justifyContent: "center", paddingRight: 5, paddingLeft: 5 }}
|
||||||
|
>
|
||||||
|
{component3}
|
||||||
|
</Grid.Col>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
|
};
|
||||||
34
screens/Admin/Donation/BoxOfDonationStory.tsx
Normal file
34
screens/Admin/Donation/BoxOfDonationStory.tsx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import {
|
||||||
|
BaseBox,
|
||||||
|
TextCustom,
|
||||||
|
Spacing,
|
||||||
|
StackCustom,
|
||||||
|
DummyLandscapeImage,
|
||||||
|
} from "@/components";
|
||||||
|
|
||||||
|
export default function AdminDonation_BoxOfDonationStory() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<BaseBox>
|
||||||
|
<TextCustom bold>Cerita Penggalang Dana</TextCustom>
|
||||||
|
<Spacing />
|
||||||
|
|
||||||
|
<StackCustom>
|
||||||
|
<TextCustom>
|
||||||
|
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Rem magni
|
||||||
|
perspiciatis eius ipsam provident, impedit, fugiat aliquid nobis
|
||||||
|
pariatur asperiores fuga quidem temporibus labore, molestias
|
||||||
|
perferendis optio ipsum. Praesentium, tempore?
|
||||||
|
</TextCustom>
|
||||||
|
<DummyLandscapeImage />
|
||||||
|
<TextCustom>
|
||||||
|
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Rem magni
|
||||||
|
perspiciatis eius ipsam provident, impedit, fugiat aliquid nobis
|
||||||
|
pariatur asperiores fuga quidem temporibus labore, molestias
|
||||||
|
perferendis optio ipsum. Praesentium, tempore?
|
||||||
|
</TextCustom>
|
||||||
|
</StackCustom>
|
||||||
|
</BaseBox>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -13,9 +13,9 @@ const adminListMenu: NavbarItem[] = [
|
|||||||
icon: "wallet",
|
icon: "wallet",
|
||||||
links: [
|
links: [
|
||||||
{ label: "Dashboard", link: "/admin/investment" },
|
{ label: "Dashboard", link: "/admin/investment" },
|
||||||
{ label: "Publish", link: "/admin/investment/publish" },
|
{ label: "Publish", link: "/admin/investment/publish/status" },
|
||||||
{ label: "Review", link: "/admin/investment/review" },
|
{ label: "Review", link: "/admin/investment/review/status" },
|
||||||
{ label: "Reject", link: "/admin/investment/reject" },
|
{ label: "Reject", link: "/admin/investment/reject/status" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -84,9 +84,9 @@ export default function LoginView() {
|
|||||||
|
|
||||||
<Spacing />
|
<Spacing />
|
||||||
|
|
||||||
{/* <ButtonCustom onPress={() => router.navigate("/admin/donation")}>
|
<ButtonCustom onPress={() => router.navigate("/admin/investment")}>
|
||||||
Admin ( Delete Soon )
|
Admin ( Delete Soon )
|
||||||
</ButtonCustom> */}
|
</ButtonCustom>
|
||||||
</View>
|
</View>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user