Skip to content

Commit

Permalink
Correct generic icon type
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaswurtz committed Jan 31, 2024
1 parent 9920d48 commit d5f773a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ui-icons/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,10 @@ for (const [name, currentData] of Object.entries(representation)) {
`export { default as ${name} } from './components/${name}'\n`
)
}

// Add generic icon type
appendFileSync(
indexFile,
`export type { GenericIconType } from './types/generic-icon-type'\n`
)

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type OSRDGenericIconType = {
export type GenericIconType = (props: {
variant?: string;
size?: string;
title?: string;
};
}) => JSX.Element;

0 comments on commit d5f773a

Please sign in to comment.