Skip to content

Commit 4b49f0f

Browse files
committed
refactor(charts): use index.tsx as component root file
1 parent ec466f4 commit 4b49f0f

33 files changed

+34
-34
lines changed

packages/charts/src/components/BarChart/BarChart.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { BarChart } from './BarChart.js';
2+
import { BarChart } from './index.js';
33
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';
44

55
const dimensions = [

packages/charts/src/components/BarChart/BarChart.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
stackedNormalizedConfig,
88
tooltipConfig,
99
} from '../../resources/DemoProps.js';
10-
import { BarChart } from './BarChart.js';
10+
import { BarChart } from './index.js';
1111

1212
const meta = {
1313
title: 'BarChart',
File renamed without changes.

packages/charts/src/components/BulletChart/BulletChart.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { BulletChart } from './BulletChart.js';
2+
import { BulletChart } from './index.js';
33
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';
44

55
const dimensions = [

packages/charts/src/components/BulletChart/BulletChart.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from '@storybook/react-vite';
22
import { complexBulletDataset, legendConfig, tooltipConfig } from '../../resources/DemoProps.js';
3-
import { BulletChart } from './BulletChart.js';
3+
import { BulletChart } from './index.js';
44

55
const meta = {
66
title: 'BulletChart',

packages/charts/src/components/BulletChart/BulletChart.tsx renamed to packages/charts/src/components/BulletChart/index.tsx

File renamed without changes.

packages/charts/src/components/ColumnChart/ColumnChart.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { ColumnChart } from './ColumnChart.js';
2+
import { ColumnChart } from './index.js';
33
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';
44

55
const dimensions = [

packages/charts/src/components/ColumnChart/ColumnChart.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
stackedNormalizedConfig,
88
tooltipConfig,
99
} from '../../resources/DemoProps.js';
10-
import { ColumnChart } from './ColumnChart.js';
10+
import { ColumnChart } from './index.js';
1111

1212
const meta = {
1313
title: 'ColumnChart',

packages/charts/src/components/ColumnChart/ColumnChart.tsx renamed to packages/charts/src/components/ColumnChart/index.tsx

File renamed without changes.

packages/charts/src/components/ColumnChartWithTrend/ColumnChartWithTrend.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { ColumnChartWithTrend } from './ColumnChartWithTrend.js';
2+
import { ColumnChartWithTrend } from './index.js';
33
import { cypressPassThroughTestsFactory, testChartLegendConfig, testChartZoomingTool } from '@/cypress/support/utils';
44

55
const dimensions = [

0 commit comments

Comments
 (0)