Merge branch 'staging' into preprod

This commit is contained in:
Vins 2024-11-30 10:35:46 +01:00
commit 3a171c9f71
3 changed files with 11 additions and 3 deletions

View File

@ -46,6 +46,10 @@
min-width: 85vw;
padding: 0;
}
&.fullheight {
min-height: 75vh;
}
}
.backdrop {

View File

@ -17,10 +17,11 @@ type IProps = {
secondButton?: IButtonProps;
fullwidth?: boolean;
fullscreen?: boolean;
fullheight?: boolean;
};
export default function Modal(props: IProps) {
const { isOpen, onClose, children, className, title, firstButton, secondButton, fullwidth, fullscreen } = props;
const { isOpen, onClose, children, className, title, firstButton, secondButton, fullwidth, fullscreen, fullheight } = props;
if (!isOpen) return null;
return (
@ -33,6 +34,7 @@ export default function Modal(props: IProps) {
className,
fullwidth && classes["fullwidth"],
fullscreen && classes["fullscreen"],
fullheight && classes["fullheight"],
)}>
<div className={classes["header"]}>
{title && <Typography typo={ETypo.TITLE_H4}> {title}</Typography>}

View File

@ -56,7 +56,6 @@ export default function ParameterDocuments(props: IProps) {
}, []);
const handleClose = useCallback(() => {
setFormattedOptions([]);
setSelectedDocuments([]);
setAddOrEditDocument("edit");
setVisibleDescription("");
@ -83,6 +82,7 @@ export default function ParameterDocuments(props: IProps) {
//await this.loadData();
handleClose();
window.location.reload();
} catch (e) {
console.error(e);
}
@ -98,6 +98,7 @@ export default function ParameterDocuments(props: IProps) {
//await this.loadData();
handleClose();
window.location.reload();
} catch (e) {
console.error(e);
}
@ -122,7 +123,8 @@ export default function ParameterDocuments(props: IProps) {
onClose={handleClose}
firstButton={{ children: "Annuler", onClick: handleClose }}
secondButton={{ children: "Ajouter", onClick: addDocument }}
title={"Ajouter un document"}>
title={"Ajouter un document"}
fullheight>
<div className={classes["root"]}>
<div className={classes["radiobox-container"]}>
<RadioBox