From 2c5e4f2eb152f2bd13423b3ad486f75ed6c3c765 Mon Sep 17 00:00:00 2001 From: Alex Phillips Date: Sun, 6 Feb 2022 19:33:49 -0500 Subject: [PATCH] added close buttons --- frontend/src/components/ImportCSV.js | 36 ++++++++++++++++------------ 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/ImportCSV.js b/frontend/src/components/ImportCSV.js index d09defc..ff2f9a2 100644 --- a/frontend/src/components/ImportCSV.js +++ b/frontend/src/components/ImportCSV.js @@ -178,8 +178,8 @@ export default function ImportCSV({ accountId, open, close }) { } const onClose = () => { - setStage('UPLOAD') close() + setStage('UPLOAD') } return ( @@ -187,14 +187,8 @@ export default function ImportCSV({ accountId, open, close }) { Import from CSV {stage === 'UPLOAD' && ( @@ -206,10 +200,15 @@ export default function ImportCSV({ accountId, open, close }) { /> - + + + + )} @@ -236,9 +235,16 @@ export default function ImportCSV({ accountId, open, close }) { ))} - + + + + + + )}