Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Mar 27, 2023
1 parent 3927940 commit fb3f4a0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
9 changes: 5 additions & 4 deletions superset-frontend/src/explore/components/SaveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ import { withRouter, RouteComponentProps } from 'react-router-dom';
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';
import {
css,
t,
styled,
DatasourceType,
isDefined,
ensureIsArray,
FeatureFlag,
isDefined,
styled,
t,
} from '@superset-ui/core';
import { Input } from 'src/components/Input';
import { Form, FormItem } from 'src/components/Form';
Expand All @@ -41,7 +42,7 @@ import { Select } from 'src/components';
import Loading from 'src/components/Loading';
import { setSaveChartModalVisibility } from 'src/explore/actions/saveModalActions';
import { SaveActionType } from 'src/explore/types';
import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags';
import { isFeatureEnabled } from 'src/featureFlags';

// Session storage key for recent dashboard
const SK_DASHBOARD_ID = 'save_chart_recent_dashboard';
Expand Down
9 changes: 5 additions & 4 deletions superset-frontend/src/pages/ChartCreation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import React, { ReactNode } from 'react';
import rison from 'rison';
import querystring from 'query-string';
import {
FeatureFlag,
isDefined,
JsonResponse,
styled,
t,
SupersetClient,
JsonResponse,
isDefined,
t,
} from '@superset-ui/core';
import { getUrlParam } from 'src/utils/urlUtils';
import { URL_PARAMS } from 'src/constants';
Expand All @@ -33,7 +34,7 @@ import Button from 'src/components/Button';
import { AsyncSelect, Steps } from 'src/components';
import { Tooltip } from 'src/components/Tooltip';
import withToasts from 'src/components/MessageToasts/withToasts';
import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags';
import { isFeatureEnabled } from 'src/featureFlags';

import VizTypeGallery, {
MAX_ADVISABLE_VIZ_GALLERY_WIDTH,
Expand Down
6 changes: 2 additions & 4 deletions superset-frontend/src/pages/DatasetList/DatasetList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import fetchMock from 'fetch-mock';
import { Provider } from 'react-redux';
import { styledMount as mount } from 'spec/helpers/theming';
import { render, screen, cleanup } from 'spec/helpers/testing-library';
import { FeatureFlag } from '@superset-ui/core';
import userEvent from '@testing-library/user-event';
import { QueryParamProvider } from 'use-query-params';
import * as featureFlags from 'src/featureFlags';
Expand Down Expand Up @@ -255,10 +256,7 @@ describe('RTL', () => {
return mounted;
}

let isFeatureEnabledMock: jest.SpyInstance<
boolean,
[feature: featureFlags.FeatureFlag]
>;
let isFeatureEnabledMock: jest.SpyInstance<boolean, [feature: FeatureFlag]>;
beforeEach(async () => {
isFeatureEnabledMock = jest
.spyOn(featureFlags, 'isFeatureEnabled')
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/pages/Tags/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@superset-ui/core';
import { FeatureFlag, t } from '@superset-ui/core';
import React, { useMemo, useCallback } from 'react';
import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags';
import { isFeatureEnabled } from 'src/featureFlags';
import {
createFetchRelated,
createErrorHandler,
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/views/CRUD/tags/TagCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/
import React from 'react';
import { Link } from 'react-router-dom';
import { t, useTheme } from '@superset-ui/core';
import { FeatureFlag, t, useTheme } from '@superset-ui/core';
import { CardStyles } from 'src/views/CRUD/utils';
import { isFeatureEnabled, FeatureFlag } from 'src/featureFlags';
import { isFeatureEnabled } from 'src/featureFlags';
import { AntdDropdown } from 'src/components';
import { Menu } from 'src/components/Menu';
import ConfirmStatusChange from 'src/components/ConfirmStatusChange';
Expand Down

0 comments on commit fb3f4a0

Please sign in to comment.