Fix: - modified: app/(application)/(user)/event/[id]/publish.tsx - modified: app/(application)/(user)/event/create.tsx - modified: app/(application)/(user)/portofolio/[id]/create.tsx - modified: app/(application)/(user)/portofolio/[id]/edit.tsx - modified: app/(application)/admin/collaboration/[id]/group.tsx - modified: app/(application)/admin/collaboration/group.tsx - modified: app/(application)/admin/collaboration/publish.tsx - modified: app/(application)/admin/forum/[id]/list-report-comment.tsx - modified: app/(application)/admin/forum/[id]/list-report-posting.tsx - modified: app/(application)/admin/forum/posting.tsx - modified: app/(application)/admin/forum/report-comment.tsx - modified: app/(application)/admin/forum/report-posting.tsx - modified: app/(application)/admin/voting/[status]/status.tsx - modified: app/(application)/admin/voting/history.tsx - modified: components/Select/SelectCustom.tsx - modified: components/_ShareComponent/GridSpan_4_8.tsx - modified: screens/Authentication/LoginView.tsx - modified: screens/Collaboration/BoxPublishSection.tsx - modified: screens/Event/BoxDetailPublishSection.tsx - modified: screens/Home/topFeatureSection.tsx - modified: screens/Portofolio/ButtonCreatePortofolio.tsx Add: - components/_ShareComponent/GridSpan_NewComponent.tsx ### No Issue
65 lines
1.6 KiB
TypeScript
65 lines
1.6 KiB
TypeScript
import { AvatarUsernameAndOtherComponent, BoxWithHeaderSection, Grid, StackCustom, TextCustom } from "@/components";
|
|
import { dateTimeView } from "@/utils/dateTimeView";
|
|
|
|
export default function Event_BoxDetailPublishSection({
|
|
data,
|
|
footerButton,
|
|
}: {
|
|
data: any;
|
|
footerButton?: React.ReactNode;
|
|
}) {
|
|
const listData = [
|
|
{
|
|
title: "Lokasi",
|
|
value: data?.lokasi || "-",
|
|
},
|
|
{
|
|
title: "Tipe Acara",
|
|
value: data?.EventMaster_TipeAcara?.name || "-",
|
|
},
|
|
{
|
|
title: "Tanggal Mulai",
|
|
value: dateTimeView({ date: data?.tanggal }) || "-",
|
|
},
|
|
{
|
|
title: "Tanggal Berakhir",
|
|
value: dateTimeView({ date: data?.tanggalSelesai }) || "-",
|
|
},
|
|
{
|
|
title: "Deskripsi",
|
|
value: data?.deskripsi || "-",
|
|
},
|
|
];
|
|
|
|
|
|
return (
|
|
<>
|
|
<BoxWithHeaderSection>
|
|
<StackCustom>
|
|
<AvatarUsernameAndOtherComponent
|
|
avatarHref={`/profile/${data?.Author?.Profile?.id}`}
|
|
name={data?.Author?.username || "-"}
|
|
avatar={data?.Author?.Profile?.imageId || ""}
|
|
/>
|
|
|
|
<TextCustom bold align="center" size="xlarge">
|
|
{data?.title || "-"}
|
|
</TextCustom>
|
|
{listData.map((item, index) => (
|
|
<Grid key={index}>
|
|
<Grid.Col span={4}>
|
|
<TextCustom bold>{item.title}</TextCustom>
|
|
</Grid.Col>
|
|
<Grid.Col span={8} style={{ paddingLeft: 10 }}>
|
|
<TextCustom>{item.value}</TextCustom>
|
|
</Grid.Col>
|
|
</Grid>
|
|
))}
|
|
</StackCustom>
|
|
</BoxWithHeaderSection>
|
|
|
|
{footerButton}
|
|
</>
|
|
);
|
|
}
|