🐛 Small bug fixes
This commit is contained in:
parent
406ebeb2cc
commit
1179d88811
@ -56,6 +56,7 @@ export default function CollaboratorInformations(props: IProps) {
|
||||
}, [selectedOption, userSelected]);
|
||||
|
||||
const changeAdmin = useCallback(async () => {
|
||||
try {
|
||||
if (adminRoleType === "add") {
|
||||
const adminRole = await Roles.getInstance().getOne({
|
||||
where: {
|
||||
@ -75,7 +76,10 @@ export default function CollaboratorInformations(props: IProps) {
|
||||
} else {
|
||||
// retirer rôle admin
|
||||
}
|
||||
setRoleModalOpened(false);
|
||||
setAdminModalOpened(false);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}, [adminRoleType, userSelected]);
|
||||
|
||||
const openAdminModal = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography";
|
||||
import DefaultCollaboratorDashboard from "@Front/Components/LayoutTemplates/DefaultCollaboratorDashboard";
|
||||
|
||||
import BasePage from "../Base";
|
||||
import classes from "./classes.module.scss";
|
||||
import DefaultCollaboratorDashboard from "@Front/Components/LayoutTemplates/DefaultCollaboratorDashboard";
|
||||
|
||||
type IProps = {};
|
||||
type IState = {};
|
||||
@ -12,7 +12,7 @@ export default class Collaborators extends BasePage<IProps, IState> {
|
||||
<DefaultCollaboratorDashboard title={"Dossier"} mobileBackText={"Liste des collaborateurs"}>
|
||||
<div className={classes["root"]}>
|
||||
<div className={classes["no-folder-selected"]}>
|
||||
<Typography typo={ITypo.H1Bis}>Informations du collaboraeur</Typography>
|
||||
<Typography typo={ITypo.H1Bis}>Informations du collaborateur</Typography>
|
||||
<div className={classes["choose-a-folder"]}>
|
||||
<Typography typo={ITypo.P_18} color={ITypoColor.GREY}>
|
||||
Sélectionnez un collaborateur
|
||||
|
Loading…
x
Reference in New Issue
Block a user