diff --git a/src/front/Components/DesignSystem/Header/Notifications/index.tsx b/src/front/Components/DesignSystem/Header/Notifications/index.tsx index 88b0cabf..cfebdfbe 100644 --- a/src/front/Components/DesignSystem/Header/Notifications/index.tsx +++ b/src/front/Components/DesignSystem/Header/Notifications/index.tsx @@ -1,10 +1,11 @@ -import React from "react"; -import classes from "./classes.module.scss"; -import Image from "next/image"; +import InfoIcon from "@Assets/Icons/info.svg"; import NotificationIcon from "@Assets/Icons/notification.svg"; import Toasts, { IToast } from "@Front/Stores/Toasts"; +import Image from "next/image"; +import React from "react"; + +import classes from "./classes.module.scss"; import NotificationModal from "./NotificationModal"; -import InfoIcon from "@Assets/Icons/info.svg"; type IProps = { isModalOpen: boolean; diff --git a/src/front/Components/DesignSystem/Header/Profile/ProfileModal/index.tsx b/src/front/Components/DesignSystem/Header/Profile/ProfileModal/index.tsx index 6612a016..b871b131 100644 --- a/src/front/Components/DesignSystem/Header/Profile/ProfileModal/index.tsx +++ b/src/front/Components/DesignSystem/Header/Profile/ProfileModal/index.tsx @@ -20,7 +20,14 @@ export default class ProfileModal extends React.Component {
- + { Module.getInstance().get().modules.pages.DeedTypes.pages.Create.props.path, Module.getInstance().get().modules.pages.DeedTypes.pages.DeedTypesInformations.props.path, Module.getInstance().get().modules.pages.DeedTypes.pages.Edit.props.path, + Module.getInstance().get().modules.pages.DocumentTypes.pages.Edit.props.path, + Module.getInstance().get().modules.pages.DocumentTypes.pages.Create.props.path, + Module.getInstance().get().modules.pages.DocumentTypes.pages.DocumentTypesInformations.props.path, + Module.getInstance().get().modules.pages.DocumentTypes.props.path, ]} /> { if (!userSelected) return; if (superAdminModalType === "add") { + Toasts.getInstance().open({ + title: "Vote attribué", + text: "Vous avez voté pour attribuer le titre de Super Admin à " + userSelected.contact?.first_name, + }); // add super admin } else { + Toasts.getInstance().open({ + title: "Vote attribué", + text: "Vous avez voté pour supprimer le titre de Super Admin à " + userSelected.contact?.first_name, + }); // remove super admin } setIsSuperAdminModalOpened(false);