refacto notifications
This commit is contained in:
parent
18469c527b
commit
f813161fc0
@ -1,4 +1,4 @@
|
||||
import BaseApiService from "@Front/Api/BaseApiService";
|
||||
import BaseNotary from "../BaseNotary";
|
||||
import { UserNotification } from "le-coffre-resources/dist/Notary";
|
||||
|
||||
// TODO Type get query params -> Where + inclue + orderby
|
||||
@ -12,9 +12,9 @@ export type IPutNotificationsParams = {
|
||||
read?: boolean;
|
||||
};
|
||||
|
||||
export default class Notifications extends BaseApiService {
|
||||
export default class Notifications extends BaseNotary {
|
||||
private static instance: Notifications;
|
||||
private baseUrl = this.getBaseUrl().concat("/notifications");
|
||||
private baseUrl = this.namespaceUrl.concat("/notifications");
|
||||
|
||||
private constructor() {
|
||||
super();
|
@ -6,7 +6,7 @@ import classes from "./classes.module.scss";
|
||||
import Rules, { RulesMode } from "@Front/Components/Elements/Rules";
|
||||
import { AppRuleActions, AppRuleNames } from "@Front/Api/Entities/rule";
|
||||
import { usePathname } from "next/navigation";
|
||||
import Notifications from "@Front/Api/LeCoffreApi/Notifications/Notifications";
|
||||
import Notifications from "@Front/Api/LeCoffreApi/Notary/Notifications/Notifications";
|
||||
import Toasts from "@Front/Stores/Toasts";
|
||||
export default function Navigation() {
|
||||
const pathname = usePathname();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Notifications from "@Front/Api/LeCoffreApi/Notifications/Notifications";
|
||||
import Notifications from "@Front/Api/LeCoffreApi/Notary/Notifications/Notifications";
|
||||
import EventEmitter from "@Front/Services/EventEmitter";
|
||||
// import I18n from "Components/Elements/I18n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user