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
+2 -2
View File
@@ -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))
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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>
) )