We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87fcb50 commit 710d364Copy full SHA for 710d364
src/components/Icon.tsx
@@ -59,7 +59,9 @@ const getIconId = (source: any) => {
59
};
60
61
export const isValidIcon = (source: any) =>
62
- typeof source === 'string' || isImageSource(source);
+ typeof source === 'string' ||
63
+ typeof source === 'function' ||
64
+ isImageSource(source);
65
66
export const isEqualIcon = (a: any, b: any) =>
67
a === b || getIconId(a) === getIconId(b);
0 commit comments