Fix ReactAdmin console warnings

This commit is contained in:
Deluan 2020-04-03 21:03:34 -04:00
parent 096ed396c8
commit b8f7715a74
3 changed files with 4 additions and 4 deletions

@ -22,10 +22,10 @@ const Personal = () => {
return (
<Card className={classes.root}>
<Title title={'Navidrome - ' + translate('menu.personal')} />
<SimpleForm toolbar={false}>
<SimpleForm toolbar={null}>
<SelectInput
source="theme"
initialValue={currentTheme}
defaultValue={currentTheme}
choices={themeChoices}
onChange={(event) => {
dispatch(changeTheme(event.target.value))

@ -32,7 +32,7 @@ const TranscodingCreate = (props) => (
{ id: 256, name: '256' },
{ id: 320, name: '320' }
]}
initialValue={192}
defaultValue={192}
/>
<TextInput
source="command"

@ -17,7 +17,7 @@ const UserCreate = (props) => (
<TextInput source="name" validate={[required()]} />
<TextInput source="email" validate={[required(), email()]} />
<PasswordInput source="password" validate={[required()]} />
<BooleanInput source="isAdmin" initialValue={false} />
<BooleanInput source="isAdmin" defaultValue={false} />
</SimpleForm>
</Create>
)