chore(lint): convert Storybook stories and shared utils to function components

Converts all .stories.tsx files across plugins and packages, plus
shared .storybook/shared utilities, from class components to function
components. No functional changes — purely structural cleanup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-04-17 10:33:10 -07:00
parent 899e9294b2
commit 8a0945f4fb
44 changed files with 378 additions and 312 deletions

View File

@@ -19,6 +19,7 @@
import memoizeOne from 'memoize-one';
import { DataRecord, SuperChart, VizType } from '@superset-ui/core';
import { supersetTheme } from '@apache-superset/core/ui';
import TableChartPlugin, {
TableChartProps,
} from '@superset-ui/plugin-chart-table';
@@ -144,6 +145,7 @@ function loadData(
export const Basic = ({ width, height }: { width: number; height: number }) => (
<SuperChart
theme={supersetTheme}
chartType={VizType.Table}
datasource={{
columnFormats: {},
@@ -195,6 +197,7 @@ export const BigTable = ({
<SuperChart
chartType={VizType.Table}
{...chartProps}
theme={supersetTheme}
width={width}
height={height}
/>