quintodrome/ui/src/personal/Personal.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1,013 B
JavaScript
Raw Normal View History

2021-06-09 18:35:20 -08:00
import { SimpleForm, Title, useTranslate } from 'react-admin'
import { Card } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
2021-06-09 18:35:20 -08:00
import { SelectLanguage } from './SelectLanguage'
import { SelectTheme } from './SelectTheme'
import { SelectDefaultView } from './SelectDefaultView'
import { NotificationsToggle } from './NotificationsToggle'
import { ScrobbleToggle } from './ScrobbleToggle'
import config from '../config'
const useStyles = makeStyles({
root: { marginTop: '1em' },
})
const Personal = () => {
const translate = useTranslate()
const classes = useStyles()
2020-03-31 13:02:22 -08:00
return (
<Card className={classes.root}>
<Title title={'Navidrome - ' + translate('menu.personal.name')} />
<SimpleForm toolbar={null} variant={'outlined'}>
<SelectTheme />
<SelectLanguage />
<SelectDefaultView />
2020-11-19 19:06:09 -09:00
<NotificationsToggle />
{config.devEnableScrobble && <ScrobbleToggle />}
</SimpleForm>
</Card>
)
}
export default Personal