Fix ReactAdmin console warnings
This commit is contained in:
@@ -22,10 +22,10 @@ const Personal = () => {
|
|||||||
return (
|
return (
|
||||||
<Card className={classes.root}>
|
<Card className={classes.root}>
|
||||||
<Title title={'Navidrome - ' + translate('menu.personal')} />
|
<Title title={'Navidrome - ' + translate('menu.personal')} />
|
||||||
<SimpleForm toolbar={false}>
|
<SimpleForm toolbar={null}>
|
||||||
<SelectInput
|
<SelectInput
|
||||||
source="theme"
|
source="theme"
|
||||||
initialValue={currentTheme}
|
defaultValue={currentTheme}
|
||||||
choices={themeChoices}
|
choices={themeChoices}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
dispatch(changeTheme(event.target.value))
|
dispatch(changeTheme(event.target.value))
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const TranscodingCreate = (props) => (
|
|||||||
{ id: 256, name: '256' },
|
{ id: 256, name: '256' },
|
||||||
{ id: 320, name: '320' }
|
{ id: 320, name: '320' }
|
||||||
]}
|
]}
|
||||||
initialValue={192}
|
defaultValue={192}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
source="command"
|
source="command"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const UserCreate = (props) => (
|
|||||||
<TextInput source="name" validate={[required()]} />
|
<TextInput source="name" validate={[required()]} />
|
||||||
<TextInput source="email" validate={[required(), email()]} />
|
<TextInput source="email" validate={[required(), email()]} />
|
||||||
<PasswordInput source="password" validate={[required()]} />
|
<PasswordInput source="password" validate={[required()]} />
|
||||||
<BooleanInput source="isAdmin" initialValue={false} />
|
<BooleanInput source="isAdmin" defaultValue={false} />
|
||||||
</SimpleForm>
|
</SimpleForm>
|
||||||
</Create>
|
</Create>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user