Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 30, 2024
1 parent e8b4fe4 commit 6c6532e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any> = {}) => ({
title: 'Chart title',
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/components/EmptyState/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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': <FilterResultsImage />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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".`;

Expand Down Expand Up @@ -63,6 +60,7 @@ export const Gallery: StoryFn = () => (
<ErrorAlert
errorType="Database Connection Error"
type="warning"
message="Failed to connect to database"
descriptionDetails={detailsExample}
descriptionDetailsCollapsed
/>
Expand Down

0 comments on commit 6c6532e

Please sign in to comment.