Skip to content

Commit 57effe7

Browse files
emersionMath-R
authored andcommitted
ui-icons: move stories to storybook
This way we can use proper imports from '@osrd-project/ui-icons' instead of accessing directly internal files. Signed-off-by: Simon Ser <[email protected]>
1 parent 10e17a4 commit 57effe7

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

ui-icons/src/stories/SearchIcons.tsx storybook/stories/Icons/SearchIcons.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { FC, useCallback, useMemo, useState, useRef } from 'react';
22
import { ErrorBoundary } from './ErrorBoundary';
33
import { Input } from '@osrd-project/ui-core';
4-
import * as Icons from '../index';
5-
import type { UiIcon } from '../index';
4+
import * as Icons from '@osrd-project/ui-icons';
5+
import type { UiIcon } from '@osrd-project/ui-icons';
66

77
const ICONS: Array<{ name: string; icon: UiIcon }> = Object.keys(Icons).map((name) => ({
88
name,

ui-icons/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../tsconfig.base.json",
33
"include": ["./src/**/*"],
4-
"exclude": ["src/components/_template.tsx", "src/stories"],
4+
"exclude": ["src/components/_template.tsx"],
55
"compilerOptions": {
66
"rootDir": "./src",
77
"outDir": "./dist",

0 commit comments

Comments
 (0)