Checkpont 1
This commit is contained in:
@@ -22,12 +22,9 @@ export default function Event_SplashScreen() {
|
||||
return (
|
||||
<>
|
||||
<Center h={"100vh"}>
|
||||
<Stack align="center" justify="center" p={"md"}>
|
||||
<Title c={"#002e59"}>Welcome to</Title>
|
||||
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||
<Image alt="event" src={"/aset/event/splash-event.png"} />
|
||||
</Paper>
|
||||
</Stack>
|
||||
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||
<Image alt="event" src={"/aset/event/splash-event.png"} />
|
||||
</Paper>
|
||||
</Center>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function Job_Splash() {
|
||||
return (
|
||||
<>
|
||||
<Center h={"100vh"}>
|
||||
<Paper>
|
||||
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||
<Image alt="logo" src={"/aset/job/logo.png"} />
|
||||
</Paper>
|
||||
</Center>
|
||||
|
||||
@@ -25,6 +25,8 @@ import { useRouter } from "next/navigation";
|
||||
import ComponentVote_CardViewPublish from "../component/card_view_publish";
|
||||
import { MODEL_VOTING } from "../model/interface";
|
||||
import ComponentGlobal_AuthorNameOnHeader from "@/app_modules/component_global/author_name_on_header";
|
||||
import _ from "lodash";
|
||||
import ComponentVote_IsEmptyData from "../component/is_empty_data";
|
||||
|
||||
export default function Vote_Beranda({
|
||||
dataVote,
|
||||
@@ -49,17 +51,21 @@ export default function Vote_Beranda({
|
||||
</ActionIcon>
|
||||
</Affix>
|
||||
|
||||
<Stack>
|
||||
{dataVote.map((e, i) => (
|
||||
<Box key={i}>
|
||||
<ComponentVote_CardViewPublish
|
||||
path={RouterVote.main_detail}
|
||||
data={e}
|
||||
authorName={true}
|
||||
/>
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
{_.isEmpty(dataVote) ? (
|
||||
<ComponentVote_IsEmptyData text="Tidak ada data"/>
|
||||
) : (
|
||||
<Stack>
|
||||
{dataVote.map((e, i) => (
|
||||
<Box key={i}>
|
||||
<ComponentVote_CardViewPublish
|
||||
path={RouterVote.main_detail}
|
||||
data={e}
|
||||
authorName={true}
|
||||
/>
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ import moment from "moment";
|
||||
import { useRouter } from "next/navigation";
|
||||
import ComponentVote_CardViewPublish from "../component/card_view_publish";
|
||||
import { MODEL_VOTE_KONTRIBUTOR } from "../model/interface";
|
||||
import _ from "lodash";
|
||||
import ComponentVote_IsEmptyData from "../component/is_empty_data";
|
||||
|
||||
export default function Vote_Kontribusi({
|
||||
dataKontribusi,
|
||||
@@ -28,19 +30,23 @@ export default function Vote_Kontribusi({
|
||||
const router = useRouter();
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
{dataKontribusi.map((e, i) => (
|
||||
<Box key={i}>
|
||||
<ComponentVote_CardViewPublish
|
||||
path={RouterVote.detail_kontribusi}
|
||||
pilihanSaya={true}
|
||||
data={e.Voting}
|
||||
authorName={true}
|
||||
namaPilihan={e.Voting_DaftarNamaVote.value}
|
||||
/>
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
{_.isEmpty(dataKontribusi) ? (
|
||||
<ComponentVote_IsEmptyData text="Tidak ada data" />
|
||||
) : (
|
||||
<Stack>
|
||||
{dataKontribusi.map((e, i) => (
|
||||
<Box key={i}>
|
||||
<ComponentVote_CardViewPublish
|
||||
path={RouterVote.detail_kontribusi}
|
||||
pilihanSaya={true}
|
||||
data={e.Voting}
|
||||
authorName={true}
|
||||
namaPilihan={e.Voting_DaftarNamaVote.value}
|
||||
/>
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
)}
|
||||
{/* <pre>{JSON.stringify(dataKontribusi, null, 2)}</pre> */}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -19,6 +19,8 @@ import moment from "moment";
|
||||
import { useRouter } from "next/navigation";
|
||||
import ComponentVote_CardViewPublish from "../../component/card_view_publish";
|
||||
import { MODEL_VOTING } from "../../model/interface";
|
||||
import _ from "lodash";
|
||||
import ComponentVote_IsEmptyData from "../../component/is_empty_data";
|
||||
|
||||
export default function Vote_RiwayatSaya({
|
||||
listRiwayatSaya,
|
||||
@@ -28,6 +30,9 @@ export default function Vote_RiwayatSaya({
|
||||
const router = useRouter();
|
||||
return (
|
||||
<>
|
||||
{_.isEmpty(listRiwayatSaya) ? (
|
||||
<ComponentVote_IsEmptyData text="Tidak ada data"/>
|
||||
) : (
|
||||
<Stack>
|
||||
{listRiwayatSaya.map((e, i) => (
|
||||
<Box key={i}>
|
||||
@@ -39,6 +44,7 @@ export default function Vote_RiwayatSaya({
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ import moment from "moment";
|
||||
import { useRouter } from "next/navigation";
|
||||
import ComponentVote_CardViewPublish from "../../component/card_view_publish";
|
||||
import { MODEL_VOTING } from "../../model/interface";
|
||||
import _ from "lodash";
|
||||
import ComponentVote_IsEmptyData from "../../component/is_empty_data";
|
||||
|
||||
export default function Vote_SemuaRiwayat({
|
||||
listRiwayat,
|
||||
@@ -28,17 +30,21 @@ export default function Vote_SemuaRiwayat({
|
||||
const router = useRouter();
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
{listRiwayat.map((e, i) => (
|
||||
<Box key={i}>
|
||||
<ComponentVote_CardViewPublish
|
||||
path={RouterVote.detail_semua_riwayat}
|
||||
data={e}
|
||||
authorName={true}
|
||||
/>
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
{_.isEmpty(listRiwayat) ? (
|
||||
<ComponentVote_IsEmptyData text="Tidak ada data" />
|
||||
) : (
|
||||
<Stack>
|
||||
{listRiwayat.map((e, i) => (
|
||||
<Box key={i}>
|
||||
<ComponentVote_CardViewPublish
|
||||
path={RouterVote.detail_semua_riwayat}
|
||||
data={e}
|
||||
authorName={true}
|
||||
/>
|
||||
</Box>
|
||||
))}
|
||||
</Stack>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -13,7 +13,8 @@ export default function Vote_StatusDraft({
|
||||
listDraft: MODEL_VOTING[];
|
||||
}) {
|
||||
if (_.isEmpty(listDraft))
|
||||
return <ComponentVote_IsEmptyData text="Tidak ada draft" />;
|
||||
return <ComponentVote_IsEmptyData text="Tidak ada data" />;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
|
||||
@@ -33,7 +33,7 @@ export default function Vote_StatusPublish({
|
||||
if (_.isEmpty(listPublish))
|
||||
return (
|
||||
<>
|
||||
<ComponentVote_IsEmptyData text="Tidak ada voting" />
|
||||
<ComponentVote_IsEmptyData text="Tidak ada data" />
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@ export default function Vote_StatusReject({
|
||||
listReject: MODEL_VOTING[];
|
||||
}) {
|
||||
if (_.isEmpty(listReject))
|
||||
return <ComponentVote_IsEmptyData text="Tidak ada review" />;
|
||||
return <ComponentVote_IsEmptyData text="Tidak ada data" />;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
|
||||
@@ -13,7 +13,8 @@ export default function Vote_StatusReview({
|
||||
listReview: MODEL_VOTING[];
|
||||
}) {
|
||||
if (_.isEmpty(listReview))
|
||||
return <ComponentVote_IsEmptyData text="Tidak ada review" />;
|
||||
return <ComponentVote_IsEmptyData text="Tidak ada data" />;
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function Vote_Splash() {
|
||||
return (
|
||||
<>
|
||||
<Center h={"100vh"}>
|
||||
<Paper>
|
||||
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||
<Image alt="logo" src={"/aset/vote/logo.png"} />
|
||||
</Paper>
|
||||
</Center>
|
||||
|
||||
Reference in New Issue
Block a user