Skip to content

Commit

Permalink
Get around issue with EuiIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Mar 17, 2020
1 parent eee5766 commit e7e6be2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const PackageIcon: React.FunctionComponent<{

const usePackageIcon = (packageName: string, version?: string, icons?: Package['icons']) => {
const { toImage } = useLinks();
const [iconType, setIconType] = useState<string>('empty');
const [iconType, setIconType] = useState<string>('');
const pkgKey = `${packageName}-${version ?? ''}`;

// Generates an icon path or Eui Icon name based on an icon list from the package
Expand Down

0 comments on commit e7e6be2

Please sign in to comment.