🐛 Wrong edit informations path

This commit is contained in:
Maxime Lalo 2023-04-27 10:49:08 +02:00
parent 10f7f08121
commit efd85c2ea2

View File

@ -28,7 +28,7 @@ export default function FolderBoxInformation(props: IProps) {
.modules.pages.Folder.pages.EditDescription.props.path.replace("[folderUid]", props.folder.uid); .modules.pages.Folder.pages.EditDescription.props.path.replace("[folderUid]", props.folder.uid);
const editInformationsPath = Module.getInstance() const editInformationsPath = Module.getInstance()
.get() .get()
.modules.pages.Folder.pages.EditDescription.props.path.replace("[folderUid]", props.folder.uid); .modules.pages.Folder.pages.EditInformations.props.path.replace("[folderUid]", props.folder.uid);
const path = type === EFolderBoxInformationType.DESCRIPTION ? editDescriptionPath : editInformationsPath; const path = type === EFolderBoxInformationType.DESCRIPTION ? editDescriptionPath : editInformationsPath;
return ( return (
@ -70,7 +70,7 @@ export default function FolderBoxInformation(props: IProps) {
<Typography typo={ITypo.P_18}>{folder.folder_number ?? ""}</Typography> <Typography typo={ITypo.P_18}>{folder.folder_number ?? ""}</Typography>
</div> </div>
<div className={classes["text-container"]}> <div className={classes["text-container"]}>
<Typography typo={ITypo.NAV_INPUT_16}>Type dacte</Typography> <Typography typo={ITypo.NAV_INPUT_16}>Type d'acte</Typography>
<Typography typo={ITypo.P_18}>{folder.deed.deed_type.name ?? ""}</Typography> <Typography typo={ITypo.P_18}>{folder.deed.deed_type.name ?? ""}</Typography>
</div> </div>
<div className={classes["text-container"]}> <div className={classes["text-container"]}>