Merged in chore/fix-material-icons-types (pull request #3497)
chore: Fix MaterialIconName type * Fix MaterialIconName type Approved-by: Bianca Widstam Approved-by: Matilda Landström
This commit is contained in:
@@ -430,15 +430,16 @@ import YardOutlined from "./generated/YardOutlined"
|
||||
import YardFilled from "./generated/YardFilled"
|
||||
|
||||
type SvgIcon = FunctionComponent<SVGProps<SVGSVGElement>>
|
||||
|
||||
export const materialIcons: Record<
|
||||
type IconMap = Record<
|
||||
string,
|
||||
Partial<{
|
||||
outlined: { outlined: SvgIcon; filled?: SvgIcon }
|
||||
rounded: { outlined: SvgIcon; filled?: SvgIcon }
|
||||
sharp: { outlined: SvgIcon; filled?: SvgIcon }
|
||||
}>
|
||||
> = {
|
||||
>
|
||||
|
||||
const _materialIcons = {
|
||||
accessibility: {
|
||||
outlined: { outlined: AccessibilityOutlined, filled: AccessibilityFilled },
|
||||
},
|
||||
@@ -985,6 +986,8 @@ export const materialIcons: Record<
|
||||
},
|
||||
wifi: { outlined: { outlined: WifiOutlined, filled: WifiFilled } },
|
||||
yard: { outlined: { outlined: YardOutlined, filled: YardFilled } },
|
||||
}
|
||||
} satisfies IconMap
|
||||
|
||||
export type MaterialIconName = keyof typeof materialIcons
|
||||
export const materialIcons = _materialIcons as IconMap
|
||||
|
||||
export type MaterialIconName = keyof typeof _materialIcons
|
||||
|
||||
Reference in New Issue
Block a user