mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) (#26907)
This commit is contained in:
@@ -43,8 +43,9 @@ jest.mock('src/components/IconTooltip', () => ({
|
||||
jest.mock(
|
||||
'src/SqlLab/components/ColumnElement',
|
||||
() =>
|
||||
({ column }: { column: Column }) =>
|
||||
<div data-test="mock-column-element">{column.name}</div>,
|
||||
({ column }: { column: Column }) => (
|
||||
<div data-test="mock-column-element">{column.name}</div>
|
||||
),
|
||||
);
|
||||
const getTableMetadataEndpoint = 'glob:**/api/v1/database/*/table/*/*/';
|
||||
const getExtraTableMetadataEndpoint =
|
||||
|
||||
@@ -377,9 +377,7 @@ const TableElement = ({ table, ...props }: TableElementProps) => {
|
||||
>
|
||||
{renderWell()}
|
||||
<div>
|
||||
{cols?.map(col => (
|
||||
<ColumnElement column={col} key={col.name} />
|
||||
))}
|
||||
{cols?.map(col => <ColumnElement column={col} key={col.name} />)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user