chore: Grab plugin icon name from package.json
parent
d11d1f0de6
commit
68aa8b57e0
|
@ -8,6 +8,8 @@ import React from 'react';
|
||||||
import { Icon } from '@strapi/design-system/Icon';
|
import { Icon } from '@strapi/design-system/Icon';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
|
|
||||||
const PluginIcon = () => <Icon as={() => <FontAwesomeIcon icon="sync" />} width="16px" />;
|
import pluginPkg from '../../../../package.json';
|
||||||
|
|
||||||
|
const PluginIcon = () => <Icon as={() => <FontAwesomeIcon icon={pluginPkg.strapi.icon} />} width="16px" />;
|
||||||
|
|
||||||
export default PluginIcon;
|
export default PluginIcon;
|
||||||
|
|
Loading…
Reference in New Issue