forked from spinnaker/deck
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(icons): allow plugins to provide custom icon components (spinnak…
…er#10001) * feat(icons): allow plugins to provide custom icon components Enables plugins to use the Icon component with a custom icon. Currently the Icon component is limited to only icons defined in iconsByName. * feat(icons): fix logic * feat(icons): different errors for different props
- Loading branch information
1 parent
a672a20
commit e436465
Showing
2 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
declare module '*.svg' { | ||
import type { ComponentType, SVGProps } from 'react'; | ||
export const ReactComponent: ComponentType<SVGProps<HTMLOrSVGElement>>; | ||
export type SVGComponent = ComponentType<SVGProps<HTMLOrSVGElement>>; | ||
export const ReactComponent: SVGComponent; | ||
const URL: string; | ||
export default URL; | ||
} |