-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: adjust-icons-import-export #620
base: main
Are you sure you want to change the base?
Changes from all commits
44ecc87
34ad12f
1ce78f2
e589df7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import charcoalIconFiles from '@charcoal-ui/icon-files' | ||
import type charcoalIconFiles from '@charcoal-ui/icon-files' | ||
|
||
export default charcoalIconFiles | ||
Check failure on line 3 in packages/icons/src/charcoalIconFiles.ts GitHub Actions / test.storybook/storybook.test.ts
Check failure on line 3 in packages/icons/src/charcoalIconFiles.ts GitHub Actions / testpackages/icons/src/PixivIcon.test.tsx
Check failure on line 3 in packages/icons/src/charcoalIconFiles.ts GitHub Actions / testpackages/react/src/components/MultiSelect/index.test.tsx
|
||
export type KnownIconFile = keyof typeof charcoalIconFiles | ||
export const KNOWN_ICON_FILES = Object.keys( | ||
charcoalIconFiles | ||
) as KnownIconFile[] | ||
export const KNOWN_ICON_FILES: KnownIconFile[] = [] | ||
|
||
export function isKnownIconFile(name: string): name is KnownIconFile { | ||
return name in charcoalIconFiles | ||
return true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@charcoal-ui/icon-files
から import して icon を個別に使うようにする