Merge branch 'dev' into staging
This commit is contained in:
commit
fb59d42446
@ -46,6 +46,10 @@
|
||||
min-width: 85vw;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.fullheight {
|
||||
min-height: 75vh;
|
||||
}
|
||||
}
|
||||
|
||||
.backdrop {
|
||||
|
@ -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>}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user