From c2910432e305e96d3122af4b370da4d77cbcc4fe Mon Sep 17 00:00:00 2001 From: Vins Date: Tue, 20 Feb 2024 14:51:21 +0100 Subject: [PATCH] Fixes --- .../Layouts/Rib/classes.module.scss | 4 ++++ src/front/Components/Layouts/Rib/index.tsx | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/front/Components/Layouts/Rib/classes.module.scss b/src/front/Components/Layouts/Rib/classes.module.scss index efb7ade1..7e980200 100644 --- a/src/front/Components/Layouts/Rib/classes.module.scss +++ b/src/front/Components/Layouts/Rib/classes.module.scss @@ -31,6 +31,10 @@ margin: auto; flex: 1; } + + .button-deposit { + align-items: center; + } } .footer { diff --git a/src/front/Components/Layouts/Rib/index.tsx b/src/front/Components/Layouts/Rib/index.tsx index 7f6d93cc..df6fdaeb 100644 --- a/src/front/Components/Layouts/Rib/index.tsx +++ b/src/front/Components/Layouts/Rib/index.tsx @@ -29,9 +29,9 @@ export default function Rib() { setKey(key); setFileName(blob.fileName); } catch (error) { - // setFileBlob(undefined); - // setFileName(""); - // setKey(""); + setFileBlob(undefined); + setFileName(""); + setKey(""); } }, [officeUid]); @@ -99,15 +99,18 @@ export default function Rib() { {!fileBlob && (
-
+
Aucun RIB n'a été déposé pour cet office
-
-
- -
+
+ )} + + {!fileBlob && ( +
+
+
)}