Event Done
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
|
||||
import {
|
||||
ActionIcon,
|
||||
Affix,
|
||||
Avatar,
|
||||
Badge,
|
||||
@@ -47,16 +48,17 @@ export default function Event_Beranda({
|
||||
// );
|
||||
return (
|
||||
<>
|
||||
{/* <Affix position={{ bottom: rem(100), right: rem(20) }}>
|
||||
<Button
|
||||
<Affix position={{ bottom: rem(100), right: rem(30) }}>
|
||||
<ActionIcon
|
||||
size={"xl"}
|
||||
radius={"xl"}
|
||||
color="blue"
|
||||
leftIcon={<IconCirclePlus />}
|
||||
variant="transparent"
|
||||
bg={"blue"}
|
||||
onClick={() => router.push(RouterEvent.create)}
|
||||
>
|
||||
<Text fz={"sm"}> Tambah Event</Text>
|
||||
</Button>
|
||||
</Affix> */}
|
||||
<IconCirclePlus color="white" size={40} />
|
||||
</ActionIcon>
|
||||
</Affix>
|
||||
|
||||
{_.isEmpty(dataEvent) ? (
|
||||
<Center h={"80vh"}>
|
||||
|
||||
@@ -71,19 +71,7 @@ export default function LayoutEvent_Main({
|
||||
}
|
||||
footer={
|
||||
<Footer height={70} bg={"dark"} sx={{ borderTop: "px solid blue" }}>
|
||||
<Center>
|
||||
<ActionIcon
|
||||
sx={{ zIndex: 1, position: "absolute" }}
|
||||
mt={-5}
|
||||
size={"xl"}
|
||||
radius={"xl"}
|
||||
variant="transparent"
|
||||
bg={"white"}
|
||||
onClick={() => router.push(RouterEvent.create)}
|
||||
>
|
||||
<IconCirclePlus color="#347aeb" size={40} />
|
||||
</ActionIcon>
|
||||
</Center>
|
||||
|
||||
<Grid>
|
||||
{listFooter.map((e, i) => (
|
||||
<Grid.Col
|
||||
|
||||
@@ -19,10 +19,9 @@ export default function Event_StatusReview({
|
||||
authorId: string;
|
||||
}) {
|
||||
const router = useRouter();
|
||||
const [data, setData] = useState(listReview);
|
||||
|
||||
|
||||
if (_.isEmpty(data))
|
||||
if (_.isEmpty(listReview))
|
||||
return (
|
||||
<Center h={"50vh"} fz={"sm"} fw={"bold"}>
|
||||
Tidak Ada Event
|
||||
@@ -30,7 +29,7 @@ export default function Event_StatusReview({
|
||||
);
|
||||
return (
|
||||
<>
|
||||
{data.map((e, i) => (
|
||||
{listReview.map((e, i) => (
|
||||
<Box key={e.id}>
|
||||
<ComponentEvent_BoxListStatus
|
||||
data={e}
|
||||
|
||||
Reference in New Issue
Block a user