From a52fd3172d862bb911db28997b5e319f3eb38784 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 1 Feb 2024 09:11:43 +0000 Subject: [PATCH] refactor(frontend): rename form during project creation --> category --- .../OpenLayersComponent/LayerSwitcher/index.js | 2 +- .../components/createnewproject/DataExtract.tsx | 4 ++-- .../components/createnewproject/SelectForm.tsx | 6 +++--- .../components/createnewproject/UploadArea.tsx | 10 +--------- .../organisation/OrganisationAddForm.tsx | 1 - src/frontend/src/constants/StepFormConstants.ts | 4 ++-- src/frontend/src/constants/blockerUrl.ts | 2 +- src/frontend/src/routes.jsx | 16 ++++++++++++++-- src/frontend/src/views/CreateNewProject.tsx | 4 ++-- src/frontend/src/views/CreateProject.tsx | 12 ++++++------ 10 files changed, 32 insertions(+), 29 deletions(-) diff --git a/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js b/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js index 1e5ca13fac..8ee72bf2fe 100644 --- a/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js +++ b/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js @@ -164,7 +164,7 @@ const LayerSwitcherControl = ({ map, visible = 'osm' }) => { if ( location.pathname.includes('project_details') || location.pathname.includes('upload-area') || - location.pathname.includes('select-form') || + location.pathname.includes('select-category') || location.pathname.includes('data-extract') || location.pathname.includes('split-tasks') ) { diff --git a/src/frontend/src/components/createnewproject/DataExtract.tsx b/src/frontend/src/components/createnewproject/DataExtract.tsx index 99d0d96f8e..561c11eb07 100644 --- a/src/frontend/src/components/createnewproject/DataExtract.tsx +++ b/src/frontend/src/components/createnewproject/DataExtract.tsx @@ -141,7 +141,7 @@ const DataExtract = ({ flag, customLineUpload, setCustomLineUpload, customPolygo }, [formValues?.dataExtractWays, formValues?.dataExtractFeatureType]); const toggleStep = (step, url) => { - if (url === '/select-form') { + if (url === '/select-category') { dispatch( CreateProjectActions.SetIndividualProjectDetailsData({ ...formValues, @@ -326,7 +326,7 @@ const DataExtract = ({ flag, customLineUpload, setCustomLineUpload, customPolygo btnText="PREVIOUS" btnType="secondary" type="button" - onClick={() => toggleStep(3, '/select-form')} + onClick={() => toggleStep(3, '/select-category')} className="fmtm-font-bold" />