Skip to content

Commit

Permalink
fixup! ui-spacetimechart: zoom-rectangle story
Browse files Browse the repository at this point in the history
  • Loading branch information
anisometropie committed Feb 21, 2025
1 parent 16987a9 commit 63ad783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui-spacetimechart/src/stories/rectangle-zoom.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import '@osrd-project/ui-core/dist/theme.css';
import '../styles/stories/rectangle-zoom.css';

import { OPERATIONAL_POINTS, PATHS } from './lib/paths';
import { CanvasRect } from '../components/CanvasRect';
import { PathLayer } from '../components/PathLayer';
import { SimpleRect } from '../components/SimpleRect';
import { SpaceTimeChart } from '../components/SpaceTimeChart';
import { CAPTION_SIZE } from '../components/TimeCaptions';
import { type Point, type PathData, type OperationalPoint } from '../lib/types';
Expand Down Expand Up @@ -313,7 +313,7 @@ const RectangleZoomWrapper = ({
<PathLayer key={path.id} path={path} color={path.color} />
))}
{state.rect && (
<SimpleRect
<CanvasRect
timeStart={state.rect.timeStart}
timeEnd={state.rect.timeEnd}
spaceStart={state.rect.spaceStart}
Expand Down

0 comments on commit 63ad783

Please sign in to comment.