Setup notifikasi untuk android
Fix: - modified: service/api-notifications.ts - modified: types/type-notification-category.ts ### No Issue
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { TypeNotificationCategoryApp } from "@/types/type-notification-category";
|
import { TypeNotificationCategoryApp, TypeOfTilteCategoryApp } from "@/types/type-notification-category";
|
||||||
import { apiConfig } from "./api-config";
|
import { apiConfig } from "./api-config";
|
||||||
|
|
||||||
type NotificationProp = {
|
type NotificationProp = {
|
||||||
title: string;
|
title: TypeOfTilteCategoryApp;
|
||||||
body: string;
|
body: string;
|
||||||
userLoginId: string;
|
userLoginId: string;
|
||||||
appId?: string;
|
appId?: string;
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ export type TypeNotificationCategoryApp =
|
|||||||
| "FORUM"
|
| "FORUM"
|
||||||
| "ACCESS";
|
| "ACCESS";
|
||||||
|
|
||||||
export const listOfcategoriesAppNotification = [
|
export type TypeOfTilteCategoryApp = "Pendaftaran User Baru" | "Other" | string;
|
||||||
|
|
||||||
|
export const listOfcategoriesAppNotification = [
|
||||||
{ value: "event", label: "Event" },
|
{ value: "event", label: "Event" },
|
||||||
{ value: "job", label: "Job" },
|
{ value: "job", label: "Job" },
|
||||||
{ value: "voting", label: "Voting" },
|
{ value: "voting", label: "Voting" },
|
||||||
@@ -16,4 +18,4 @@ export type TypeNotificationCategoryApp =
|
|||||||
{ value: "investasi", label: "Investasi" },
|
{ value: "investasi", label: "Investasi" },
|
||||||
{ value: "forum", label: "Forum" },
|
{ value: "forum", label: "Forum" },
|
||||||
{ value: "collaboration", label: "Collaboration" },
|
{ value: "collaboration", label: "Collaboration" },
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user