From 0110cd9ed70fe586537508a889a3f51f99378738 Mon Sep 17 00:00:00 2001 From: Micheal Wells Date: Fri, 20 Oct 2023 16:09:13 -0700 Subject: [PATCH] menu UI mostly done --- .../UI/Map/Buttons/CustomizeLayerDialog.tsx | 57 +++++++++++-------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/appv2/src/UI/Map/Buttons/CustomizeLayerDialog.tsx b/appv2/src/UI/Map/Buttons/CustomizeLayerDialog.tsx index 2c9c587f8..674a23bb2 100644 --- a/appv2/src/UI/Map/Buttons/CustomizeLayerDialog.tsx +++ b/appv2/src/UI/Map/Buttons/CustomizeLayerDialog.tsx @@ -70,12 +70,10 @@ const CustomizeLayerMenu = (props) => { setNewLayerName(''); }; - const onKMLDone = () => { cleanup(); - dispatch({ type: TOGGLE_CUSTOMIZE_LAYERS }) - } - + dispatch({ type: TOGGLE_CUSTOMIZE_LAYERS }); + }; return ( @@ -102,9 +100,7 @@ const CustomizeLayerMenu = (props) => { className={classes.select} value={newLayerName} onChange={(e) => setNewLayerName(e.target.value)} - label="Name your new layer"> - - + label="Name your new layer"> ), Remove: ( @@ -123,9 +119,7 @@ const CustomizeLayerMenu = (props) => { ), - Upload: ( - - ), + Upload: , Init: <> }[subMenuType] } @@ -152,20 +146,35 @@ const CustomizeLayerMenu = (props) => { ), New: ( <> - - + + ), Remove: ( <> - - + + ) }[subMenuType] @@ -174,14 +183,12 @@ const CustomizeLayerMenu = (props) => { onClick={() => { dispatch({ type: TOGGLE_CUSTOMIZE_LAYERS }); cleanup(); - }}>Exit + }}> + Exit + ); }; - - - export default CustomizeLayerMenu; -