Skip to content

Commit 99efc58

Browse files
committed
ui-manchette: update some package exports
- Add some type export needed when implementing the app - Remove some exports not needed outside of ui-manchette
1 parent 759d4f7 commit 99efc58

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ui-manchette-with-spacetimechart/src/stories/base-with-waypoint-menu.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useRef, useState } from 'react';
22

33
import { EyeClosed, Telescope } from '@osrd-project/ui-icons';
4-
import { Manchette } from '@osrd-project/ui-manchette';
4+
import Manchette from '@osrd-project/ui-manchette';
55
import type { ProjectPathTrainResult, Waypoint } from '@osrd-project/ui-manchette/dist/types';
66
import { PathLayer, SpaceTimeChart } from '@osrd-project/ui-spacetimechart';
77
import type { Meta } from '@storybook/react';

ui-manchette-with-spacetimechart/src/stories/base.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useRef } from 'react';
22

3-
import { Manchette } from '@osrd-project/ui-manchette';
3+
import Manchette from '@osrd-project/ui-manchette';
44
import type { ProjectPathTrainResult, Waypoint } from '@osrd-project/ui-manchette/dist/types';
55
import { PathLayer, SpaceTimeChart } from '@osrd-project/ui-spacetimechart';
66
import type { Meta } from '@storybook/react';

ui-manchette/src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import '@osrd-project/ui-core/dist/theme.css';
22
import './styles/main.css';
33
import './components/consts';
44

5-
export { default as Waypoint } from './components/Waypoint';
6-
export { default as WaypointList } from './components/WaypointList';
7-
export { default as Manchette } from './components/Manchette';
8-
export { WaypointMenuData } from './types';
5+
import Manchette from './components/Manchette';
6+
7+
export default Manchette;
8+
export type { WaypointMenuData, Waypoint, ProjectPathTrainResult } from './types';

0 commit comments

Comments
 (0)