new feature
deskripsi: - fitur tambah sponsor
This commit is contained in:
@@ -962,14 +962,15 @@ model MasterKategoriApp {
|
||||
// ======================= EVENT ======================= //
|
||||
|
||||
model EventSponsor {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
name String
|
||||
fileName String
|
||||
fileExt String?
|
||||
fileId String
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
name String
|
||||
isTransfer Boolean? @default(false)
|
||||
fileName String
|
||||
fileExt String?
|
||||
fileId String
|
||||
|
||||
Author User? @relation(fields: [auhtorId], references: [id])
|
||||
auhtorId String?
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { prisma } from "@/app/lib";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { IEventSponsor } from "@/app_modules/event/_lib/interface";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
export async function POST(
|
||||
@@ -13,40 +15,39 @@ export async function POST(
|
||||
);
|
||||
}
|
||||
|
||||
const { id } = context.params;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const body = await request.json();
|
||||
console.log("body", body);
|
||||
console.log("id", id);
|
||||
if (!userLoginId) {
|
||||
return NextResponse.json(
|
||||
{ success: false, message: "User not found" },
|
||||
{ status: 401 }
|
||||
);
|
||||
}
|
||||
|
||||
// const res = await prisma.eventSponsor.create({
|
||||
try {
|
||||
let fixData;
|
||||
const { id } = context.params;
|
||||
const req: IEventSponsor = await request.json();
|
||||
|
||||
// })
|
||||
fixData = await prisma.eventSponsor.create({
|
||||
data: {
|
||||
eventId: id,
|
||||
name: req.name as string,
|
||||
fileName: req.fileName as string,
|
||||
fileExt: req.fileExt as string,
|
||||
fileId: req.fileId as string,
|
||||
auhtorId: userLoginId,
|
||||
},
|
||||
});
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
message: "Success create sponsor",
|
||||
});
|
||||
|
||||
// try {
|
||||
// const { id } = context.params;
|
||||
|
||||
// const body = await request.json();
|
||||
// console.log("body",body);
|
||||
// console.log("id",id);
|
||||
|
||||
// // const res = await prisma.eventSponsor.create({
|
||||
|
||||
// // })
|
||||
|
||||
// return NextResponse.json({
|
||||
// success: true,
|
||||
// message: "Success create sponsor",
|
||||
// });
|
||||
// } catch (error) {
|
||||
// return NextResponse.json(
|
||||
// { success: false, message: "Failed create sponsor" },
|
||||
// { status: 500 }
|
||||
// );
|
||||
// }
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
message: "Success create sponsor",
|
||||
});
|
||||
} catch (error) {
|
||||
return NextResponse.json(
|
||||
{ success: false, message: "Failed create sponsor" },
|
||||
{ status: 500 }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,4 +43,7 @@ export const RouterEvent = {
|
||||
`/dev/event/detail/sponsor/tambah_sponsor/${id}`,
|
||||
detail_sponsor: ({ id }: { id: string }) =>
|
||||
`/dev/event/detail/detail_sponsor/${id}`,
|
||||
|
||||
nominal_sponsor: ({ id }: { id: string }) =>
|
||||
`/dev/event/detail/sponsor/nominal_sponsor/${id}`,
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { Stack } from "@mantine/core";
|
||||
import AdminGlobal_ComponentBackButton from "../../_admin_global/back_button";
|
||||
import { AdminEvent_ViewDetailPeserta } from "../_view";
|
||||
import { MODEL_EVENT_PESERTA } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "@/app_modules/event/_lib/interface";
|
||||
import { ComponentAdminGlobal_TitlePage } from "../../_admin_global/_component";
|
||||
|
||||
export function AdminEvent_UiDetailPeserta({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { MODEL_EVENT_PESERTA } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "@/app_modules/event/_lib/interface";
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
ComponentGlobal_NotifikasiGagal,
|
||||
ComponentGlobal_NotifikasiPeringatan,
|
||||
} from "@/app_modules/_global/notif_global";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/_lib/interface";
|
||||
import {
|
||||
Affix,
|
||||
Box,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { RouterAdminEvent } from "@/app/lib/router_admin/router_admin_event";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/_lib/interface";
|
||||
import {
|
||||
Button,
|
||||
Center,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function AdminEvent_funEditCatatanById(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { RouterAdminEvent } from "@/app/lib/router_admin/router_admin_event";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/_lib/interface";
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
|
||||
@@ -21,7 +21,7 @@ import { useRouter } from "next/navigation";
|
||||
import { useDisclosure } from "@mantine/hooks";
|
||||
import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil";
|
||||
import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/model/interface";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/_lib/interface";
|
||||
import { useState } from "react";
|
||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||
import { adminEvent_funGetListReject } from "../fun";
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { IEventSponsor } from "./interface";
|
||||
|
||||
export const apiGetEventDetailById = async ({ id }: { id: string }) => {
|
||||
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
|
||||
if (!token) return await token.json().catch(() => null);
|
||||
@@ -68,14 +70,14 @@ export const apiGetEventCreateSponsor = async ({
|
||||
data,
|
||||
}: {
|
||||
id: string;
|
||||
data: any;
|
||||
data: IEventSponsor;
|
||||
}) => {
|
||||
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
|
||||
if (!token) return await token.json().catch(() => null);
|
||||
|
||||
const response = await fetch(`/api/event/sponsor/${id}`, {
|
||||
method: "POST",
|
||||
body: data,
|
||||
body: JSON.stringify(data),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Accept: "application/json",
|
||||
|
||||
@@ -30,6 +30,21 @@ export interface MODEL_EVENT_PESERTA {
|
||||
userId: string;
|
||||
User: MODEL_USER;
|
||||
eventId: string;
|
||||
isPresent: boolean
|
||||
isPresent: boolean;
|
||||
Event: MODEL_EVENT;
|
||||
}
|
||||
|
||||
export interface IEventSponsor {
|
||||
id?: string;
|
||||
isActive?: boolean;
|
||||
createdAt?: Date;
|
||||
updatedAt?: Date;
|
||||
name?: string;
|
||||
fileName?: string;
|
||||
fileExt?: string;
|
||||
fileId?: string;
|
||||
eventId?: string;
|
||||
Event?: MODEL_EVENT;
|
||||
authorId?: string;
|
||||
Author?: MODEL_USER;
|
||||
}
|
||||
@@ -18,7 +18,7 @@ import { useState } from "react";
|
||||
import { event_funUpdateKehadiran } from "../fun";
|
||||
import { Event_funJoinAndConfirmEvent } from "../fun/create/fun_join_and_confirm";
|
||||
import { gs_event_hotMenu } from "../global_state";
|
||||
import { MODEL_EVENT } from "../model/interface";
|
||||
import { MODEL_EVENT } from "../_lib/interface";
|
||||
import { Event_funJoinEvent } from "../fun/create/fun_join_event";
|
||||
import "moment/locale/id";
|
||||
import { apiGetEventDetailById } from "../_lib/api_event";
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
import { Card, Group, Stack, Text, Title } from "@mantine/core";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { MODEL_EVENT } from "../model/interface";
|
||||
import { MODEL_EVENT } from "../_lib/interface";
|
||||
|
||||
export default function ComponentEvent_BoxListStatus({
|
||||
data,
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from "@mantine/core";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { MODEL_EVENT_PESERTA } from "../../model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
|
||||
export function ComponentEvent_CardKontributor({
|
||||
data,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from "@/app_modules/_global/component";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export function ComponentEvent_CardRiwayat({ data }: { data: MODEL_EVENT }) {
|
||||
const router = useRouter();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { ComponentGlobal_CardStyles } from "@/app_modules/_global/component";
|
||||
import { Grid, Stack, Text, Title } from "@mantine/core";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { MainColor } from "@/app_modules/_global/color";
|
||||
import { Event_ComponentSkeletonDetailData } from "../skeleton/comp_skeleton_detail_data";
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import "moment/locale/id";
|
||||
import { useParams } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { apiGetEventDetailById } from "../../_lib/api_event";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { Event_ComponentSkeletonDetail } from "../skeleton/comp_skeleton_detail";
|
||||
import Event_ComponentBoxDaftarPeserta from "./comp_box_daftar_peserta";
|
||||
import Event_ComponentBoxDaftarSponsor from "./comp_box_sponsor";
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
ComponentGlobal_LoaderAvatar,
|
||||
} from "@/app_modules/_global/component";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { MODEL_EVENT_PESERTA } from "../../model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
import { Prisma } from "@prisma/client";
|
||||
import { RouterProfile } from "@/app/lib/router_hipmi/router_katalog";
|
||||
import ComponentGlobal_Loader from "@/app_modules/_global/component/loader";
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Event_ComponentSkeletonDetailData } from "../../component";
|
||||
import ComponentEvent_DetailData from "../../component/detail/detail_data";
|
||||
import { Event_funDeleteById } from "../../fun/delete/fun_delete";
|
||||
import { Event_funEditStatusById } from "../../fun/edit/fun_edit_status_by_id";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { Stack, Loader, Center } from "@mantine/core";
|
||||
import ComponentEvent_ListPeserta from "../../component/detail/list_peserta";
|
||||
import { MODEL_EVENT_PESERTA } from "../../model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
import { useParams } from "next/navigation";
|
||||
import ComponentEvent_ListPesertaNew from "../../component/detail/list_peserta_new";
|
||||
import { useShallowEffect } from "@mantine/hooks";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import ComponentEvent_DetailData from "../../component/detail/detail_data";
|
||||
import ComponentEvent_ListPeserta from "../../component/detail/list_peserta";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export default function Event_DetailPublish({
|
||||
dataEvent,
|
||||
|
||||
@@ -12,7 +12,7 @@ import { useState } from "react";
|
||||
import ComponentEvent_DetailData from "../../component/detail/detail_data";
|
||||
import { Event_funDeleteById } from "../../fun/delete/fun_delete";
|
||||
import { Event_funEditStatusById } from "../../fun/edit/fun_edit_status_by_id";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import ComponentEvent_DetailData from "../../component/detail/detail_data";
|
||||
import { Event_funEditStatusById } from "../../fun/edit/fun_edit_status_by_id";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { IRealtimeData } from "@/app/lib/global_state";
|
||||
import { WibuRealtime } from "wibu-pkg";
|
||||
import { event_checkStatus } from "../../fun/get/fun_check_status_by_id";
|
||||
|
||||
@@ -1,9 +1,24 @@
|
||||
'use client';
|
||||
import { AccentColor, MainColor } from '@/app_modules/_global/color';
|
||||
import { Box, Button, Group, Paper, Stack, Text, TextInput, Title } from '@mantine/core';
|
||||
import { IconChevronRight, IconMoodSmile, IconMoodSmileBeam, IconMoodSmileDizzy, IconMoodXd } from '@tabler/icons-react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import React from 'react';
|
||||
"use client";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
Group,
|
||||
Paper,
|
||||
Stack,
|
||||
Text,
|
||||
TextInput,
|
||||
Title,
|
||||
} from "@mantine/core";
|
||||
import {
|
||||
IconChevronRight,
|
||||
IconMoodSmile,
|
||||
IconMoodSmileBeam,
|
||||
IconMoodSmileDizzy,
|
||||
IconMoodXd,
|
||||
} from "@tabler/icons-react";
|
||||
import { useParams, useRouter } from "next/navigation";
|
||||
import React from "react";
|
||||
|
||||
const listNominal = [
|
||||
{
|
||||
@@ -28,7 +43,9 @@ const listNominal = [
|
||||
},
|
||||
];
|
||||
function Event_PilihNominalSponsor() {
|
||||
const params = useParams<{ id: string }>();
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Stack>
|
||||
@@ -49,9 +66,7 @@ function Event_PilihNominalSponsor() {
|
||||
<Group position="apart">
|
||||
<Group>
|
||||
{e.icon}
|
||||
<Title order={4}>
|
||||
Rp.{e.jumlah}
|
||||
</Title>
|
||||
<Title order={4}>Rp.{e.jumlah}</Title>
|
||||
</Group>
|
||||
<IconChevronRight />
|
||||
</Group>
|
||||
@@ -79,15 +94,16 @@ function Event_PilihNominalSponsor() {
|
||||
Minimal Donasi Rp. 10.000
|
||||
</Text>
|
||||
</Stack>
|
||||
</Paper >
|
||||
</Paper>
|
||||
<Button
|
||||
style={{ transition: "0.5s" }}
|
||||
radius={"xl"}
|
||||
bg={MainColor.yellow}
|
||||
color="yellow"
|
||||
c={"black"}
|
||||
onClick={() => router.push("/dev/event/detail/sponsor/metode_pembayaran")}
|
||||
|
||||
onClick={() =>
|
||||
router.push("/dev/event/detail/sponsor/metode_pembayaran")
|
||||
}
|
||||
>
|
||||
Lanjutan Pembayaran
|
||||
</Button>
|
||||
|
||||
@@ -32,6 +32,8 @@ import {
|
||||
ComponentGlobal_NotifikasiPeringatan,
|
||||
} from "@/app_modules/_global/notif_global";
|
||||
import { DIRECTORY_ID } from "@/app/lib";
|
||||
import { IEventSponsor } from "../../_lib/interface";
|
||||
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
|
||||
|
||||
function Event_TambahSponsor() {
|
||||
const params = useParams<{ id: string }>();
|
||||
@@ -62,9 +64,11 @@ function Event_TambahSponsor() {
|
||||
return;
|
||||
}
|
||||
|
||||
const data = {
|
||||
const fileType = file.type.split("/").pop();
|
||||
const data: IEventSponsor = {
|
||||
name: name,
|
||||
fileName: file.name,
|
||||
fileExt: fileType,
|
||||
fileId: uploadFile.data.id,
|
||||
};
|
||||
|
||||
@@ -73,9 +77,14 @@ function Event_TambahSponsor() {
|
||||
data: data,
|
||||
});
|
||||
|
||||
console.log("res >>", created);
|
||||
|
||||
if (created) {
|
||||
setIsLoading(false);
|
||||
router.replace(RouterEvent.nominal_sponsor({ id: params.id }));
|
||||
ComponentGlobal_NotifikasiBerhasil(created.message);
|
||||
} else {
|
||||
setIsLoading(false);
|
||||
ComponentGlobal_NotifikasiPeringatan(created.message);
|
||||
}
|
||||
} catch (error) {
|
||||
setIsLoading(false);
|
||||
@@ -168,7 +177,7 @@ function Event_TambahSponsor() {
|
||||
loaderPosition="center"
|
||||
radius={"xl"}
|
||||
onClick={() => {
|
||||
// onCreated();
|
||||
onCreated();
|
||||
}}
|
||||
bg={MainColor.yellow}
|
||||
color="yellow"
|
||||
|
||||
@@ -22,7 +22,7 @@ import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.share
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { Event_funEditById } from "../fun/edit/fun_edit_by_id";
|
||||
import { MODEL_EVENT } from "../model/interface";
|
||||
import { MODEL_EVENT } from "../_lib/interface";
|
||||
import ComponentEvent_ErrorMaximalInput from "../component/error_maksimal_input";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import _ from "lodash";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import { MODEL_EVENT_PESERTA } from "../../model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function Event_funJoinAndConfirmEvent(data: MODEL_EVENT_PESERTA) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import { MODEL_EVENT_PESERTA } from "../../model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function Event_funJoinEvent(data: MODEL_EVENT_PESERTA) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import _ from "lodash";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export async function Event_funEditById(data: MODEL_EVENT) {
|
||||
const updt = await prisma.event.update({
|
||||
|
||||
@@ -22,7 +22,7 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import { ComponentEvent_CardBeranda } from "../component/card_view/card_beranda";
|
||||
import { event_getListAllPublish } from "../fun/get/get_list_all_publish";
|
||||
import { MODEL_EVENT } from "../model/interface";
|
||||
import { MODEL_EVENT } from "../_lib/interface";
|
||||
import { Event_ComponentSkeletonBeranda } from "../component";
|
||||
import { API_RouteEvent } from "@/app/lib/api_user_router/route_api_event";
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import { ComponentEvent_CardKontributor } from "../../component/card_view/card_kontributor";
|
||||
import { event_getListKontibusiByUserId } from "../../fun/get/get_list_kontribusi_by_user_id";
|
||||
import { MODEL_EVENT_PESERTA } from "../../model/interface";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
|
||||
export default function Event_Kontribusi({
|
||||
listKontribusi,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from "@/app_modules/_global/color/color_pallet";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import Event_RiwayatSaya from "./saya";
|
||||
import Event_SemuaRiwayat from "./semua";
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { ComponentEvent_CardRiwayat } from "../../component/card_view/card_riwayat";
|
||||
import { event_getListSemuaRiwayat } from "../../fun/get/riwayat/get_list_semua_riwayat";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { event_getListRiwayatSaya } from "../../fun/get/riwayat/get_list_riwayat_saya";
|
||||
|
||||
export default function Event_RiwayatSaya({
|
||||
|
||||
@@ -9,7 +9,7 @@ import { useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { ComponentEvent_CardRiwayat } from "../../component/card_view/card_riwayat";
|
||||
import { event_getListSemuaRiwayat } from "../../fun/get/riwayat/get_list_semua_riwayat";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export default function Event_SemuaRiwayat({
|
||||
listData,
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import ComponentEvent_BoxListStatus from "../../component/box_list_status";
|
||||
import { event_getAllDraft } from "../../fun/get/status/get_all_draft";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export default function Event_StatusDraft({
|
||||
listDraft,
|
||||
|
||||
@@ -9,7 +9,7 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import ComponentEvent_BoxListStatus from "../../component/box_list_status";
|
||||
import { event_getAllByStatusId } from "../../fun";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export default function Event_StatusPublish({
|
||||
listPublish,
|
||||
|
||||
@@ -12,7 +12,7 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import ComponentEvent_BoxListStatus from "../../component/box_list_status";
|
||||
import { event_getAllReject } from "../../fun/get/status/get_all_reject";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export default function Event_StatusReject({
|
||||
listReject,
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import ComponentEvent_BoxListStatus from "../../component/box_list_status";
|
||||
import { event_getAllReview } from "../../fun/get/status/get_all_review";
|
||||
import { MODEL_EVENT } from "../../model/interface";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
export default function Event_StatusReview({
|
||||
listReview,
|
||||
|
||||
Reference in New Issue
Block a user