mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 03:30:39 +03:00
Show songs' genres as text instead of Chips
This commit is contained in:
parent
95181d748d
commit
1471e1240d
@ -9,10 +9,8 @@ import {
|
||||
DateField,
|
||||
TextField,
|
||||
NumberField,
|
||||
FunctionField,
|
||||
useTranslate,
|
||||
ArrayField,
|
||||
SingleFieldList,
|
||||
ChipField,
|
||||
useRecordContext,
|
||||
} from 'react-admin'
|
||||
import inflection from 'inflection'
|
||||
@ -36,11 +34,7 @@ export const SongDetails = (props) => {
|
||||
discSubtitle: <TextField source="discSubtitle" />,
|
||||
albumArtist: <TextField source="albumArtist" />,
|
||||
genre: (
|
||||
<ArrayField source={'genres'}>
|
||||
<SingleFieldList linkType={false}>
|
||||
<ChipField source="name" />
|
||||
</SingleFieldList>
|
||||
</ArrayField>
|
||||
<FunctionField render={(r) => r.genres?.map((g) => g.name).join(', ')} />
|
||||
),
|
||||
compilation: <BooleanField source="compilation" />,
|
||||
bitRate: <BitrateField source="bitRate" />,
|
||||
|
Loading…
x
Reference in New Issue
Block a user