chore: Grab plugin icon name from package.json

pull/28/head
Boaz Poolman 2021-11-10 19:57:29 +01:00
parent d11d1f0de6
commit 68aa8b57e0
1 changed files with 3 additions and 1 deletions

View File

@ -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;