Merge branch 'dev' into staging
This commit is contained in:
commit
74b9d5312a
@ -7,7 +7,7 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 3;
|
||||
z-index: 5;
|
||||
|
||||
.content {
|
||||
position: fixed;
|
||||
@ -54,7 +54,8 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
opacity: 0.3;
|
||||
background: var(--primary-default-deep, #013391);
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
.cancel-button {
|
||||
display: flex;
|
||||
margin-right: 32px;
|
||||
margin-right: var(--spacing-md, 16px);
|
||||
}
|
||||
|
||||
@media (max-width: $screen-m) {
|
||||
|
@ -1,11 +1,12 @@
|
||||
.add-document-form-container {
|
||||
.root {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
gap: var(--spacing-md, 16px);
|
||||
width: 566px;
|
||||
|
||||
.radiobox-container {
|
||||
> :not(:last-child) {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-xs, 8px);
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import { IOption } from "@Front/Components/DesignSystem/Dropdown/DropdownMenu/Dr
|
||||
import AutocompleteMultiSelectField from "@Front/Components/DesignSystem/Form/AutocompleteMultiSelectField";
|
||||
import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField";
|
||||
import TextField from "@Front/Components/DesignSystem/Form/TextField";
|
||||
import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm";
|
||||
import Modal from "@Front/Components/DesignSystem/Modal";
|
||||
import RadioBox from "@Front/Components/DesignSystem/RadioBox";
|
||||
import { DocumentType, OfficeFolder } from "le-coffre-resources/dist/Notary";
|
||||
import { ChangeEvent, useCallback, useEffect, useState } from "react";
|
||||
@ -117,15 +117,13 @@ export default function ParameterDocuments(props: IProps) {
|
||||
}, [getAvailableDocuments, props.folder]);
|
||||
|
||||
return (
|
||||
<Confirm
|
||||
<Modal
|
||||
isOpen={props.isCreateDocumentModalVisible}
|
||||
onClose={handleClose}
|
||||
onAccept={addDocument}
|
||||
closeBtn
|
||||
header={"Ajouter des documents demandables"}
|
||||
cancelText={"Annuler"}
|
||||
confirmText={"Ajouter"}>
|
||||
<div className={classes["add-document-form-container"]}>
|
||||
firstButton={{ children: "Annuler", onClick: handleClose }}
|
||||
secondButton={{ children: "Ajouter", onClick: addDocument }}
|
||||
title={"Ajouter un document"}>
|
||||
<div className={classes["root"]}>
|
||||
<div className={classes["radiobox-container"]}>
|
||||
<RadioBox
|
||||
name="document"
|
||||
@ -143,6 +141,7 @@ export default function ParameterDocuments(props: IProps) {
|
||||
label="Créer un document"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{addOrEditDocument === "add" && (
|
||||
<>
|
||||
<TextField name="document_name" placeholder="Nom du document à ajouter" onChange={onDocumentNameChange} />
|
||||
@ -162,6 +161,6 @@ export default function ParameterDocuments(props: IProps) {
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Confirm>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
.buttons-container {
|
||||
display: flex;
|
||||
gap: 32px;
|
||||
gap: var(--spacing-md, 16px);
|
||||
margin-top: 32px;
|
||||
|
||||
@media (max-width: $screen-s) {
|
||||
|
@ -155,7 +155,7 @@ export default function AskDocuments() {
|
||||
</div>
|
||||
<div className={classes["add-document-container"]}>
|
||||
<Button
|
||||
rightIcon={<PlusIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||
leftIcon={<PlusIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||
variant={EButtonVariant.PRIMARY}
|
||||
styletype={EButtonstyletype.OUTLINED}
|
||||
size={EButtonSize.MD}
|
||||
@ -169,7 +169,7 @@ export default function AskDocuments() {
|
||||
Annuler
|
||||
</Button>
|
||||
</a>
|
||||
<Button type="submit">Valider</Button>
|
||||
<Button type="submit">Envoyer la demande</Button>
|
||||
</div>
|
||||
</div>
|
||||
</Form>
|
||||
|
@ -16,6 +16,16 @@ $mobile-breakpoint: 664px;
|
||||
.tabs {
|
||||
width: calc(100% - 210px);
|
||||
}
|
||||
|
||||
border-bottom: 1px solid var(--tabs-stroke);
|
||||
|
||||
> :first-child {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
|
Loading…
x
Reference in New Issue
Block a user