From 277bda60c3f3aa2524936c42e8cbe32a77addb03 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 10 Feb 2022 09:26:49 +0100 Subject: [PATCH] feat: Remove unused dataset selector (back button is sufficient) --- app/configurator/components/configurator.tsx | 32 +------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/app/configurator/components/configurator.tsx b/app/configurator/components/configurator.tsx index 2f89477b78..8bd2ef66bc 100644 --- a/app/configurator/components/configurator.tsx +++ b/app/configurator/components/configurator.tsx @@ -25,33 +25,6 @@ import { import { SelectDatasetStep } from "./select-dataset-step"; import { Stepper } from "./stepper"; -const DatasetSelector = ({ state }: { state: ConfiguratorState }) => { - const locale = useLocale(); - const [{ data: metaData }] = useDataCubeMetadataQuery({ - variables: { iri: state.dataSet || "", locale }, - pause: !state.dataSet, - }); - return ( -
- Dataset - {metaData ? ( - -
{metaData.dataCubeByIri?.title}
-
- - - - Choose another dataset - - - -
-
- ) : null} -
- ); -}; - const SelectChartTypeStep = () => { const [state] = useConfiguratorState(); if (state.state !== "SELECTING_CHART_TYPE") { @@ -60,10 +33,7 @@ const SelectChartTypeStep = () => { return ( <> - - - - +