quintodrome/ui/src/artist/index.js
Ruchi Kushwaha b441260186
Change icon on active menu item (#903)
* add icons

* add logic to change the icon

* make the active menu bold

* Encapsulate the dynamic icon behaviour into a self-contained component

Co-authored-by: Deluan <deluan@navidrome.org>
2021-04-17 00:40:07 -04:00

16 lines
399 B
JavaScript

import React from 'react'
import ArtistList from './ArtistList'
import DynamicMenuIcon from '../layout/DynamicMenuIcon'
import MicNoneOutlinedIcon from '@material-ui/icons/MicNoneOutlined'
import MicIcon from '@material-ui/icons/Mic'
export default {
list: ArtistList,
icon: (
<DynamicMenuIcon
path={'artist'}
icon={MicNoneOutlinedIcon}
activeIcon={MicIcon}
/>
),
}