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