Voting notifikasi for mobile
Fix: - src/app/api/mobile/admin/voting/[id]/route.ts - src/app/api/mobile/event/route.ts - src/app/api/mobile/voting/[id]/route.ts - src/app/api/mobile/voting/route.ts - src/lib/mobile/route-page-mobile.ts ### No Issue
This commit is contained in:
@@ -5,14 +5,16 @@ type StatusApp = "review" | "draft" | "reject" | "publish";
|
||||
const routeAdminMobile = {
|
||||
userAccess: ({ id }: { id: string }) => `/admin/user-access/${id}`,
|
||||
// JOB
|
||||
jobDetail: ({ id, status }: { id: string; status: StatusApp }) =>
|
||||
`/admin/job/${id}/${status}`,
|
||||
jobByStatus: ({ status }: { status: StatusApp }) =>
|
||||
`/admin/job/${status}/status`,
|
||||
|
||||
// EVENT
|
||||
eventByStatus: ({ status }: { status: StatusApp }) =>
|
||||
`/admin/event/${status}/status`,
|
||||
|
||||
// VOTING
|
||||
votingByStatus: ({ status }: { status: StatusApp }) =>
|
||||
`/admin/voting/${status}/status`,
|
||||
};
|
||||
|
||||
const routeUserMobile = {
|
||||
@@ -26,4 +28,9 @@ const routeUserMobile = {
|
||||
eventByStatus: ({ status }: { status?: StatusApp }) =>
|
||||
`/event/(tabs)/status?status=${status}`,
|
||||
eventDetailPublised: ({ id }: { id: string }) => `/event/${id}/publish`,
|
||||
|
||||
// VOTING
|
||||
votingByStatus: ({ status }: { status?: StatusApp }) =>
|
||||
`/voting/(tabs)/status?status=${status}`,
|
||||
votingDetailPublised: ({ id }: { id: string }) => `/voting/${id}`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user