Admin Voting
Add: - admin/voting: tambah [id] dan [status] Component Admin Add: - components/_ShareComponent/Admin/ButtonReject - components/_ShareComponent/Admin/ButtonReview ### No Issue
This commit is contained in:
24
components/_ShareComponent/Admin/ButtonReject.tsx
Normal file
24
components/_ShareComponent/Admin/ButtonReject.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { IconReject } from "@/components/_Icon/IconComponent";
|
||||
import ButtonCustom from "@/components/Button/ButtonCustom";
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
|
||||
export default function AdminButtonReject({
|
||||
title,
|
||||
onReject,
|
||||
}: {
|
||||
title: string;
|
||||
onReject: () => void;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<ButtonCustom
|
||||
iconLeft={<IconReject />}
|
||||
backgroundColor={MainColor.red}
|
||||
textColor="white"
|
||||
onPress={onReject}
|
||||
>
|
||||
{title}
|
||||
</ButtonCustom>
|
||||
</>
|
||||
);
|
||||
}
|
||||
39
components/_ShareComponent/Admin/ButtonReview.tsx
Normal file
39
components/_ShareComponent/Admin/ButtonReview.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
import { IconPublish, IconReject } from "@/components/_Icon/IconComponent";
|
||||
import ButtonCustom from "@/components/Button/ButtonCustom";
|
||||
import Grid from "@/components/Grid/GridCustom";
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
|
||||
export default function AdminButtonReview({
|
||||
onPublish,
|
||||
onReject,
|
||||
}: {
|
||||
onPublish: () => void;
|
||||
onReject: () => void;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<Grid>
|
||||
<Grid.Col span={6} style={{ paddingRight: 10 }}>
|
||||
<ButtonCustom
|
||||
iconLeft={<IconPublish />}
|
||||
backgroundColor={MainColor.green}
|
||||
textColor="white"
|
||||
onPress={onPublish}
|
||||
>
|
||||
Publish
|
||||
</ButtonCustom>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6} style={{ paddingLeft: 10 }}>
|
||||
<ButtonCustom
|
||||
iconLeft={<IconReject />}
|
||||
backgroundColor={MainColor.red}
|
||||
textColor="white"
|
||||
onPress={onReject}
|
||||
>
|
||||
Reject
|
||||
</ButtonCustom>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user