Add: - admin/investment/[id] - admin/investment/[status] Fix: - delete: publish, reject, review ### No Issue
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
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() {
|
|
return (
|
|
<>
|
|
<ViewWrapper>
|
|
<AdminTitlePage title="Investasi" />
|
|
<Spacing />
|
|
<StackCustom gap={"xs"}>
|
|
{listData.map((item, i) => (
|
|
<AdminComp_BoxDashboard key={i} item={item} />
|
|
))}
|
|
</StackCustom>
|
|
</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} />,
|
|
},
|
|
];
|