Skip to content

Commit

Permalink
ui-manchette-with-spacetimechart: add ManchetteWithSpaceTimeChart story
Browse files Browse the repository at this point in the history
Add a story to demonstrate the use of ManchetteWithSpaceTimeChart.
It behaves the same as the default story.

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Feb 24, 2025
1 parent 556392f commit 02e3569
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ui-manchette-with-spacetimechart/src/stories/simple.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { Meta } from '@storybook/react';

import '@osrd-project/ui-core/dist/theme.css';
import '@osrd-project/ui-manchette/dist/theme.css';
import '@osrd-project/ui-manchette-with-spacetimechart/dist/theme.css';

import { SAMPLE_WAYPOINTS, SAMPLE_PATHS_DATA } from '../assets/sampleData';
import ManchetteWithSpaceTimeChart from '../components/ManchetteWithSpaceTimeChart';

const meta: Meta<typeof ManchetteWithSpaceTimeChart> = {
title: 'Manchette with SpaceTimeChart/simple',
component: ManchetteWithSpaceTimeChart,
};

export default meta;

export const Default = {
args: {
waypoints: SAMPLE_WAYPOINTS,
projectPathTrainResult: SAMPLE_PATHS_DATA,
selectedTrain: 1,
},
};

0 comments on commit 02e3569

Please sign in to comment.