prototype 1.0
This commit is contained in:
15
src/resources/users/UserEdit.tsx
Normal file
15
src/resources/users/UserEdit.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import { Edit, SimpleForm, TextInput, SelectInput, required } from 'react-admin';
|
||||
|
||||
export const UserEdit = () => (
|
||||
<Edit>
|
||||
<SimpleForm>
|
||||
<TextInput source="email" disabled />
|
||||
<SelectInput source="status" choices={[
|
||||
{ id: 'active', name: 'Active' },
|
||||
{ id: 'blocked', name: 'Blocked' },
|
||||
{ id: 'deleted', name: 'Deleted' },
|
||||
]} validate={required()} />
|
||||
</SimpleForm>
|
||||
</Edit>
|
||||
);
|
||||
Reference in New Issue
Block a user