Fix: voting status
Deskripsi: - Perubahan router status & riwayat
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { Event_DetailDraft } from "@/app_modules/event"
|
||||
import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id"
|
||||
import { Event_DetailDraft } from "@/app_modules/event";
|
||||
import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let eventId = params.id
|
||||
const dataEvent = await event_getOneById(eventId)
|
||||
return <Event_DetailDraft dataEvent={dataEvent as any} />
|
||||
let eventId = params.id;
|
||||
const dataEvent = await event_getOneById(eventId);
|
||||
return (
|
||||
<Event_DetailDraft eventId={eventId as any} dataEvent={dataEvent as any} />
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Event_Edit } from "@/app_modules/event";
|
||||
import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
import { Event_getMasterTipeAcara } from "@/app_modules/event/fun/master/get_tipe_acara";
|
||||
import { MODEL_EVENT } from "@/app_modules/event/model/interface";
|
||||
import _ from "lodash";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
@@ -15,7 +14,6 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
"updatedAt",
|
||||
"active",
|
||||
]);
|
||||
// console.log(dataEvent)
|
||||
|
||||
const listTipeAcara = await Event_getMasterTipeAcara()
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { Event_StatusPage } from "@/app_modules/event";
|
||||
import {
|
||||
event_getAllByStatusId,
|
||||
event_getMasterStatus,
|
||||
event_getAllByStatusId,
|
||||
event_getMasterStatus,
|
||||
} from "@/app_modules/event/fun";
|
||||
import React from "react";
|
||||
|
||||
async function Page({ params }: { params: { id: string } }) {
|
||||
let statusId = params.id;
|
||||
|
||||
Reference in New Issue
Block a user