From 6c6532ec369a4e5c80c895a702cd107acf037bbb Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 30 Dec 2024 07:42:09 -0800 Subject: [PATCH] linting --- .../DynamicEditableTitle/DynamicEditableTitle.test.tsx | 2 +- superset-frontend/src/components/EmptyState/index.tsx | 2 +- .../src/components/ErrorMessage/ErrorAlert.stories.tsx | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/superset-frontend/src/components/DynamicEditableTitle/DynamicEditableTitle.test.tsx b/superset-frontend/src/components/DynamicEditableTitle/DynamicEditableTitle.test.tsx index fbf33106e76a1..b11f50825df55 100644 --- a/superset-frontend/src/components/DynamicEditableTitle/DynamicEditableTitle.test.tsx +++ b/superset-frontend/src/components/DynamicEditableTitle/DynamicEditableTitle.test.tsx @@ -18,7 +18,7 @@ */ import userEvent from '@testing-library/user-event'; import { render, screen } from 'spec/helpers/testing-library'; -import { DynamicEditableTitle } from '.'; +import DynamicEditableTitle from '.'; const createProps = (overrides: Record = {}) => ({ title: 'Chart title', diff --git a/superset-frontend/src/components/EmptyState/index.tsx b/superset-frontend/src/components/EmptyState/index.tsx index 1418a2553e7c1..252a6f1039a9e 100644 --- a/superset-frontend/src/components/EmptyState/index.tsx +++ b/superset-frontend/src/components/EmptyState/index.tsx @@ -19,7 +19,6 @@ import { ReactNode, SyntheticEvent } from 'react'; import { styled, css, SupersetTheme, t } from '@superset-ui/core'; import Button from 'src/components/Button'; -import { Empty } from './Empty'; // Importing svg images import FilterResultsImage from 'src/assets/images/filter-results.svg'; @@ -33,6 +32,7 @@ import EmptyQueriesImage from 'src/assets/images/empty-queries.svg'; import StarCircleImage from 'src/assets/images/star-circle.svg'; import VectorImage from 'src/assets/images/vector.svg'; import DocumentImage from 'src/assets/images/document.svg'; +import { Empty } from './Empty'; const imageMap = { 'filter-results.svg': , diff --git a/superset-frontend/src/components/ErrorMessage/ErrorAlert.stories.tsx b/superset-frontend/src/components/ErrorMessage/ErrorAlert.stories.tsx index 4fe8c5d84308e..a7b159141a8d7 100644 --- a/superset-frontend/src/components/ErrorMessage/ErrorAlert.stories.tsx +++ b/superset-frontend/src/components/ErrorMessage/ErrorAlert.stories.tsx @@ -30,9 +30,6 @@ This is useful for verbose error messages.`; const sqlErrorDescription = `SQL Error: Syntax error near unexpected token. Please check your query and ensure it follows the correct syntax.`; -const dbConnectionError = `Database Connection Error: Unable to establish a connection. -Please verify your database URL, credentials, and network access.`; - const detailsExample = `Additional details about the issue are provided here. This content is shown when the user clicks "Show more".`; @@ -63,6 +60,7 @@ export const Gallery: StoryFn = () => (