Skip to content

Commit

Permalink
feat: Put dataset section behind a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed May 31, 2024
1 parent 5ed675c commit 1cc1546
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/configurator/components/dataset-control-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
useConfiguratorState,
} from "@/configurator/configurator-state";
import { DataCubeMetadata } from "@/domain/data";
import { useFlag } from "@/flags";
import { useDataCubesMetadataQuery } from "@/graphql/hooks";
import SvgIcAdd from "@/icons/components/IcAdd";
import SvgIcChecked from "@/icons/components/IcChecked";
Expand Down Expand Up @@ -197,6 +198,11 @@ export const DatasetsControlSection = () => {
setActiveSection("general");
};

const isShown = useFlag("cubeMerge.enabled");
if (!isShown) {
return null;
}

return (
<ControlSection collapse>
<SubsectionTitle titleId="controls-data" gutterBottom={false}>
Expand Down

0 comments on commit 1cc1546

Please sign in to comment.