From c3dd1115dcb27b87f52dfc30e29d5cc43a82e7ac Mon Sep 17 00:00:00 2001 From: Hugo Lextrait Date: Thu, 11 May 2023 19:01:22 +0200 Subject: [PATCH] error message on deposited documents --- .../DepositDocument/classes.module.scss | 152 +++++++++--------- .../DesignSystem/DepositDocument/index.tsx | 10 +- 2 files changed, 85 insertions(+), 77 deletions(-) diff --git a/src/front/Components/DesignSystem/DepositDocument/classes.module.scss b/src/front/Components/DesignSystem/DepositDocument/classes.module.scss index f68a2dfd..9a4268f2 100644 --- a/src/front/Components/DesignSystem/DepositDocument/classes.module.scss +++ b/src/front/Components/DesignSystem/DepositDocument/classes.module.scss @@ -1,100 +1,104 @@ -.root { - padding: 24px; - background-color: var(--white); - border: 1px dashed #e7e7e7; +.container { - height: fit-content; - &[data-drag-over="true"] { - border: 1px dashed var(--grey); - } + .root { + padding: 24px; + background-color: var(--white); + border: 1px dashed #e7e7e7; - &.validated { - border: 1px dashed var(--green-flash); - } + height: fit-content; - .top-container { - display: flex; - align-items: center; - - .left { - margin-right: 28px; + &[data-drag-over="true"] { + border: 1px dashed var(--grey); } - .separator { - background-color: #939393; - width: 1px; - align-self: stretch; + &.validated { + border: 1px dashed var(--green-flash); } - .right { - margin-left: 18px; + .top-container { + display: flex; + align-items: center; - .validated { - color: var(--green-flash); + .left { + margin-right: 28px; } - .refused-button { - font-size: 14px; - color: var(--re-hover); - margin-left: 8px; + .separator { + background-color: #939393; + width: 1px; + align-self: stretch; } - .title { + .right { + margin-left: 18px; + + .validated { + color: var(--green-flash); + } + + .refused-button { + font-size: 14px; + color: var(--re-hover); + margin-left: 8px; + } + + .title { + display: flex; + align-items: center; + gap: 8px; + } + } + } + + .documents-container { + display: flex; + flex-direction: column; + gap: 16px; + margin-top: 16px; + + .file-container { display: flex; align-items: center; - gap: 8px; + justify-content: space-between; + + .left-part { + display: flex; + align-items: center; + gap: 8px; + } + + .cross { + cursor: pointer; + } } } + + .bottom-container { + margin-top: 16px; + + .add-button { + .add-document { + display: flex; + align-items: center; + gap: 14px; + } + } + } + + .text { + margin-bottom: 12px; + } } - .documents-container { + .modal-content { display: flex; flex-direction: column; gap: 16px; - margin-top: 16px; - - .file-container { - display: flex; - align-items: center; - justify-content: space-between; - - .left-part { - display: flex; - align-items: center; - gap: 8px; - } - - .cross { - cursor: pointer; - } - } } - .bottom-container { - margin-top: 16px; - - .add-button { - .add-document { - display: flex; - align-items: center; - gap: 14px; - } - } + .error-message { + color: var(--red-flash); + margin-top: 8px; } - - .text { - margin-bottom: 12px; - } -} - -.modal-content { - display: flex; - flex-direction: column; - gap: 16px; -} - -.error-message { - color: var(--red-flash); - margin-top: 8px; } \ No newline at end of file diff --git a/src/front/Components/DesignSystem/DepositDocument/index.tsx b/src/front/Components/DesignSystem/DepositDocument/index.tsx index 21173c1d..1c5a43be 100644 --- a/src/front/Components/DesignSystem/DepositDocument/index.tsx +++ b/src/front/Components/DesignSystem/DepositDocument/index.tsx @@ -66,7 +66,7 @@ export default class DepositDocument extends React.Component { public override render(): JSX.Element { return ( - <> +
{
- {
} - + {this.props.document.document_status === EDocumentStatus.REFUSED && ( + + Ce document n’est pas conforme. Veuillez le déposer à nouveau. + + )} + ); }