Fix missing icon props (#27539)
This commit is contained in:
parent
bc3afb6311
commit
f08ca3f042
3 changed files with 8 additions and 4 deletions
|
@ -25,7 +25,9 @@ export const Icon: React.FC<Props> = ({
|
|||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (!IconComponent) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
throw new Error(`<Icon id="${id}"> is missing an "icon" prop.`);
|
||||
throw new Error(
|
||||
`<Icon id="${id}" className="${className}"> is missing an "icon" prop.`,
|
||||
);
|
||||
}
|
||||
|
||||
IconComponent = CheckBoxOutlineBlankIcon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue