mirror of
https://github.com/apache/superset.git
synced 2026-06-05 07:39:19 +00:00
chore: make TS enums strictly PascalCase (#26875)
This commit is contained in:
@@ -154,7 +154,7 @@ describe('ChartContainer', () => {
|
||||
|
||||
it('hides gutter when collapsing data panel', async () => {
|
||||
const props = createProps();
|
||||
setItem(LocalStorageKeys.is_datapanel_open, true);
|
||||
setItem(LocalStorageKeys.IsDatapanelOpen, true);
|
||||
const { container } = render(<ChartContainer {...props} />, {
|
||||
useRedux: true,
|
||||
});
|
||||
|
||||
@@ -148,14 +148,14 @@ const ExploreChartPanel = ({
|
||||
height: chartPanelHeight,
|
||||
} = useResizeDetectorByObserver();
|
||||
const [splitSizes, setSplitSizes] = useState(
|
||||
isFeatureEnabled(FeatureFlag.DATAPANEL_CLOSED_BY_DEFAULT)
|
||||
isFeatureEnabled(FeatureFlag.DatapanelClosedByDefault)
|
||||
? INITIAL_SIZES
|
||||
: getItem(LocalStorageKeys.chart_split_sizes, INITIAL_SIZES),
|
||||
: getItem(LocalStorageKeys.ChartSplitSizes, INITIAL_SIZES),
|
||||
);
|
||||
const [showSplite, setShowSplit] = useState(
|
||||
isFeatureEnabled(FeatureFlag.DATAPANEL_CLOSED_BY_DEFAULT)
|
||||
isFeatureEnabled(FeatureFlag.DatapanelClosedByDefault)
|
||||
? false
|
||||
: getItem(LocalStorageKeys.is_datapanel_open, false),
|
||||
: getItem(LocalStorageKeys.IsDatapanelOpen, false),
|
||||
);
|
||||
|
||||
const [showDatasetModal, setShowDatasetModal] = useState(false);
|
||||
@@ -202,7 +202,7 @@ const ExploreChartPanel = ({
|
||||
}, [updateQueryContext]);
|
||||
|
||||
useEffect(() => {
|
||||
setItem(LocalStorageKeys.chart_split_sizes, splitSizes);
|
||||
setItem(LocalStorageKeys.ChartSplitSizes, splitSizes);
|
||||
}, [splitSizes]);
|
||||
|
||||
const onDragEnd = useCallback(sizes => {
|
||||
|
||||
Reference in New Issue
Block a user