mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 11:17:19 +03:00
Add a proper title to the UserEdit view
This commit is contained in:
parent
491bfb1f69
commit
2ef2377926
@ -9,8 +9,11 @@ import {
|
||||
SimpleForm
|
||||
} from 'react-admin'
|
||||
|
||||
const UserTitle = ({ record }) => {
|
||||
return <span>User {record ? record.name : ''}</span>
|
||||
}
|
||||
const UserEdit = (props) => (
|
||||
<Edit {...props}>
|
||||
<Edit title={<UserTitle />} {...props}>
|
||||
<SimpleForm>
|
||||
<TextInput source="name" validate={[required()]} />
|
||||
<PasswordInput source="password" validate={[required()]} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user