Merge branch 'dev' into staging

This commit is contained in:
Maxime Lalo 2023-09-19 11:08:23 +02:00
commit d3ae82f245

View File

@ -12,6 +12,7 @@ import { NextRouter, useRouter } from "next/router";
import BasePage from "../../Base"; import BasePage from "../../Base";
import classes from "./classes.module.scss"; import classes from "./classes.module.scss";
import ClientSection from "./ClientSection"; import ClientSection from "./ClientSection";
import Link from "next/link";
type IProps = {}; type IProps = {};
@ -40,6 +41,9 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
// TODO: Message if the user has not created any folder yet // TODO: Message if the user has not created any folder yet
// TODO: get the selected folder from the api in componentDidMount // TODO: get the selected folder from the api in componentDidMount
public override render(): JSX.Element { public override render(): JSX.Element {
const redirectPathEditCollaborators = Module.getInstance()
.get()
.modules.pages.Folder.pages.EditCollaborators.props.path.replace("[folderUid]", this.props.selectedFolderUid);
return ( return (
<DefaultNotaryDashboard title={"Dossier"} onSelectedFolder={this.onSelectedFolder} isArchived={true}> <DefaultNotaryDashboard title={"Dossier"} onSelectedFolder={this.onSelectedFolder} isArchived={true}>
<div className={classes["root"]}> <div className={classes["root"]}>
@ -50,9 +54,11 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
<div className={classes["title"]}> <div className={classes["title"]}>
<Typography typo={ITypo.H1Bis}>Informations du dossier</Typography> <Typography typo={ITypo.H1Bis}>Informations du dossier</Typography>
</div> </div>
<Link href={redirectPathEditCollaborators}>
<Button variant={EButtonVariant.LINE} icon={ChevronIcon}> <Button variant={EButtonVariant.LINE} icon={ChevronIcon}>
Modifier les collaborateurs Modifier les collaborateurs
</Button> </Button>
</Link>
</div> </div>
<FolderBoxInformation <FolderBoxInformation
folder={this.state.selectedFolder} folder={this.state.selectedFolder}