mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-08 01:15:49 +02:00
fix: add missing icons
This commit is contained in:
parent
10eabb366f
commit
151fccc262
@ -1,7 +1,9 @@
|
|||||||
import { Divider, Drawer, List, Icon } from '@material-ui/core';
|
import { Divider, Drawer, List } from '@material-ui/core';
|
||||||
import { NavLink } from 'react-router-dom';
|
import { NavLink } from 'react-router-dom';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import GitHubIcon from '@material-ui/icons/GitHub';
|
||||||
|
import LibraryBooksIcon from '@material-ui/icons/LibraryBooks';
|
||||||
|
|
||||||
import styles from './drawer.module.scss';
|
import styles from './drawer.module.scss';
|
||||||
|
|
||||||
@ -18,17 +20,9 @@ const filterByFlags = flags => r => {
|
|||||||
|
|
||||||
function getIcon(IconComponent) {
|
function getIcon(IconComponent) {
|
||||||
if (IconComponent === 'c_github') {
|
if (IconComponent === 'c_github') {
|
||||||
return (
|
return <GitHubIcon className={classnames(styles.navigationIcon)} />;
|
||||||
<i
|
|
||||||
className={classnames(
|
|
||||||
'material-icons',
|
|
||||||
styles.navigationIcon,
|
|
||||||
styles.iconGitHub
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
} else if (IconComponent === 'library_books') {
|
} else if (IconComponent === 'library_books') {
|
||||||
return <Icon className={styles.navigationIcon}>library_books</Icon>;
|
return <LibraryBooksIcon className={styles.navigationIcon} />;
|
||||||
} else {
|
} else {
|
||||||
return <IconComponent className={styles.navigationIcon} />;
|
return <IconComponent className={styles.navigationIcon} />;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user