Skip to content

Commit

Permalink
[refactor] GH-14 Move renderers to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
amivanoff committed Sep 6, 2021
1 parent 53fce40 commit c3b67fb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions stories/DataRenderer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ import { additionalCollsLocal, localChartsViewDescrs } from '../src/store/data';
import { MstBoxPlotChartVKElement, MstTimeSeriesChartVKElement } from '../src/store/MstViewElements';
import { boxPlotBucketShape, observationShape } from '../src/store/shapes';

const renderers = [...chartsRenderers];

export default {
title: 'DataRenderer',
component: Form,
} as Meta;

const Template: Story = (args: any) => {
const renderers = [...chartsRenderers];
registerMstViewKindSchema(MstTimeSeriesChartVKElement);
registerMstViewKindSchema(MstBoxPlotChartVKElement);

Expand Down
3 changes: 1 addition & 2 deletions stories/DenormalizedObservations.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ import { chartsRenderers } from '../src';
import { additionalColls, denormalizedObservationsViewDescrs } from '../src/store/DenormalizedObservationsData';
import { MstBoxPlotChartVKElement, MstTimeSeriesChartVKElement } from '../src/store/MstViewElements';

const renderers = [...antdLayoutRenderers, ...chartsRenderers];

export default {
title: 'DenormalizedObservations',
component: Form,
} as Meta;

const Template: Story = (args: any) => {
const renderers = [...antdLayoutRenderers, ...chartsRenderers];
registerMstViewKindSchema(MstTimeSeriesChartVKElement);
registerMstViewKindSchema(MstBoxPlotChartVKElement);

Expand Down
3 changes: 1 addition & 2 deletions stories/GroupedBoxPlot.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ import { additionalCollsLocal, localChartsViewDescrs } from '../src/store/data';
import { MstBoxPlotChartVKElement, MstTimeSeriesChartVKElement } from '../src/store/MstViewElements';
import { boxPlotBucketShape, observationShape } from '../src/store/shapes';

const renderers = [...chartsRenderers];

export default {
title: 'GroupedBoxPlot',
component: Form,
} as Meta;

const Template: Story = (args: any) => {
const renderers = [...chartsRenderers];
registerMstViewKindSchema(MstTimeSeriesChartVKElement);
registerMstViewKindSchema(MstBoxPlotChartVKElement);

Expand Down
3 changes: 1 addition & 2 deletions stories/RemoteBoxPlot.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ import { chartsRenderers } from '../src';
import { MstBoxPlotChartVKElement, MstTimeSeriesChartVKElement } from '../src/store/MstViewElements';
import { additionalBoxplotColls, remoteBoxPlotViewDescrs } from '../src/store/RemoteBoxPlot';

const renderers = [...chartsRenderers];

export default {
title: 'RemoteBoxPlot',
component: Form,
} as Meta;

const Template: Story = (args: any) => {
const renderers = [...chartsRenderers];
registerMstViewKindSchema(MstTimeSeriesChartVKElement);
registerMstViewKindSchema(MstBoxPlotChartVKElement);

Expand Down
3 changes: 1 addition & 2 deletions stories/RemoteDataRenderer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ import { chartsRenderers } from '../src';
import { MstBoxPlotChartVKElement, MstTimeSeriesChartVKElement } from '../src/store/MstViewElements';
import { additionalColls, timeSeriesViewDescrs } from '../src/store/RemoteData';

const renderers = [...chartsRenderers];

export default {
title: 'RemoteDataRenderer',
component: Form,
} as Meta;

const Template: Story = (args: any) => {
const renderers = [...chartsRenderers];
registerMstViewKindSchema(MstTimeSeriesChartVKElement);
registerMstViewKindSchema(MstBoxPlotChartVKElement);

Expand Down

0 comments on commit c3b67fb

Please sign in to comment.