Skip to content

Commit

Permalink
Refactoring RootState
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneTorap committed Feb 12, 2022
1 parent 0e7c1fe commit 7a4de6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ import { t } from '@superset-ui/core';
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';
import Button from 'src/components/Button';
import { exploreChart } from 'src/explore/exploreUtils';
import rootReducer from 'src/SqlLab/reducers';

type RootState = ReturnType<typeof rootReducer>;
import { RootState } from 'src/SqlLab/types';

interface ExploreCtasResultsButtonProps {
actions: {
Expand Down
1 change: 1 addition & 0 deletions superset-frontend/src/SqlLab/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export type RootState = {
tables: Record<string, any>[];
queriesLastUpdate: number;
user: UserWithPermissionsAndRoles;
errorMessage: string | null;
};
localStorageUsageInKilobytes: number;
messageToasts: toastState[];
Expand Down

0 comments on commit 7a4de6f

Please sign in to comment.