mirror of
https://github.com/navidrome/navidrome.git
synced 2025-08-10 00:52:20 +00:00
Use a custom List component
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
import React from 'react'
|
||||
import { Datagrid, List, TextField } from 'react-admin'
|
||||
import { Datagrid, TextField } from 'react-admin'
|
||||
import { useMediaQuery } from '@material-ui/core'
|
||||
import { SimpleList, Title } from '../common'
|
||||
import { SimpleList, List } from '../common'
|
||||
import config from '../config'
|
||||
|
||||
const TranscodingList = (props) => {
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
return (
|
||||
<List
|
||||
title={
|
||||
<Title
|
||||
subTitle={'resources.transcoding.name'}
|
||||
args={{ smart_count: 2 }}
|
||||
/>
|
||||
}
|
||||
exporter={false}
|
||||
{...props}
|
||||
>
|
||||
<List exporter={false} {...props}>
|
||||
{isXsmall ? (
|
||||
<SimpleList
|
||||
primaryText={(r) => r.name}
|
||||
|
||||
Reference in New Issue
Block a user