API Event

Add:
- api-client/api-event : fetch get one, update data, update status, create event

Fix:
- UI : create , detail dan status: untuk menyambungkan ke API

### No Issue
This commit is contained in:
2025-09-11 17:34:08 +08:00
parent 3854db9330
commit b6d4c0e6a6
12 changed files with 703 additions and 228 deletions

12
utils/dateTimeView.ts Normal file
View File

@@ -0,0 +1,12 @@
import dayjs from "dayjs";
export const dateTimeView = ({
date,
withoutTime = false,
}: {
date: any;
withoutTime?: boolean;
}) => {
const newDate = dayjs(date).format(`DD-MM-YYYY, ${withoutTime ? "" : "HH:mm"}`);
return newDate;
};