Deskripsi:
Event: Add file: - contibution with id - list of participan - publish - BoxDetailPublishSection - BoxPublishSection - menuDrawerPublish Fix: Event: - layout dan index\ # No Issue
This commit is contained in:
61
screens/Event/BoxDetailPublishSection.tsx
Normal file
61
screens/Event/BoxDetailPublishSection.tsx
Normal file
@@ -0,0 +1,61 @@
|
||||
import {
|
||||
BaseBox,
|
||||
Grid,
|
||||
StackCustom,
|
||||
TextCustom
|
||||
} from "@/components";
|
||||
|
||||
export default function Event_BoxDetailPublishSection({
|
||||
footerButton,
|
||||
}: {
|
||||
footerButton?: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<BaseBox>
|
||||
<StackCustom>
|
||||
<TextCustom bold align="center" size="xlarge">
|
||||
Judul event publish
|
||||
</TextCustom>
|
||||
{listData.map((item, index) => (
|
||||
<Grid key={index}>
|
||||
<Grid.Col span={4}>
|
||||
<TextCustom bold>{item.title}</TextCustom>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={8}>
|
||||
<TextCustom>{item.value}</TextCustom>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
))}
|
||||
</StackCustom>
|
||||
</BaseBox>
|
||||
|
||||
{footerButton}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const listData = [
|
||||
{
|
||||
title: "Lokasi",
|
||||
value:
|
||||
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur eveniet ab eum ducimus tempore a quia deserunt quisquam. Tempora, atque. Aperiam minima asperiores dicta perferendis quis adipisci, dolore optio porro!",
|
||||
},
|
||||
{
|
||||
title: "Tipe Acara",
|
||||
value: "Workshop",
|
||||
},
|
||||
{
|
||||
title: "Tanggal Mulai",
|
||||
value: "Senin, 18 Juli 2025, 10:00 WIB",
|
||||
},
|
||||
{
|
||||
title: "Tanggal Berakhir",
|
||||
value: "Selasa, 19 Juli 2025, 12:00 WIB",
|
||||
},
|
||||
{
|
||||
title: "Deskripsi",
|
||||
value:
|
||||
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur eveniet ab eum ducimus tempore a quia deserunt quisquam. Tempora, atque. Aperiam minima asperiores dicta perferendis quis adipisci, dolore optio porro!",
|
||||
},
|
||||
];
|
||||
39
screens/Event/BoxPublishSection.tsx
Normal file
39
screens/Event/BoxPublishSection.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
import { BaseBox, StackCustom, AvatarUsernameAndOtherComponent, TextCustom } from "@/components";
|
||||
|
||||
export default function Event_BoxPublishSection({
|
||||
id,
|
||||
name,
|
||||
avatarHref,
|
||||
description,
|
||||
footerButton
|
||||
}: {
|
||||
id: string;
|
||||
name?: string;
|
||||
avatarHref?: string;
|
||||
description?: string;
|
||||
footerButton?: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<BaseBox href={`/event/${id}/publish`}>
|
||||
<StackCustom gap={"xs"}>
|
||||
<AvatarUsernameAndOtherComponent
|
||||
avatarHref={`/profile/${id}`}
|
||||
name="Lorem ipsum dolor sit"
|
||||
/>
|
||||
<TextCustom truncate bold>
|
||||
Lorem ipsum dolor sit
|
||||
</TextCustom>
|
||||
<TextCustom truncate={2}>
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro sed
|
||||
doloremque tempora soluta. Dolorem ex quidem ipsum tempora, ipsa,
|
||||
obcaecati quia suscipit numquam, voluptates commodi porro impedit
|
||||
natus quos doloremque!
|
||||
</TextCustom>
|
||||
</StackCustom>
|
||||
</BaseBox>
|
||||
{footerButton}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
17
screens/Event/menuDrawerPublish.tsx
Normal file
17
screens/Event/menuDrawerPublish.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { AccentColor } from "@/constants/color-palet";
|
||||
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||
import { FontAwesome } from "@expo/vector-icons";
|
||||
|
||||
export const menuDrawerPublishEvent = ({ id }: { id: string }) => [
|
||||
{
|
||||
icon: (
|
||||
<FontAwesome
|
||||
name="users"
|
||||
size={ICON_SIZE_MEDIUM}
|
||||
color={AccentColor.white}
|
||||
/>
|
||||
),
|
||||
label: "Daftar peserta",
|
||||
path: `/(application)/(user)/event/${id}/list-of-participants`,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user