diff --git a/src/App.tsx b/src/App.tsx index 9cc1fe2..a76a2e2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,6 +9,7 @@ import userEdit from "./Edits/UserEdit"; import polyglotI18nProvider from 'ra-i18n-polyglot'; // @ts-ignore import russianMessages from 'ra-language-russian'; +import UserCreate from "./Creats/UserCreate"; const i18nProvider = polyglotI18nProvider(() => russianMessages, 'ru'); @@ -25,6 +26,7 @@ export const App = () => { name="user" list={UserList} edit={userEdit} + create={UserCreate} /> ) diff --git a/src/Creats/UserCreate.tsx b/src/Creats/UserCreate.tsx new file mode 100644 index 0000000..9c8e13b --- /dev/null +++ b/src/Creats/UserCreate.tsx @@ -0,0 +1,30 @@ +import { + BooleanInput, + Create, + PasswordInput, + ReferenceInput, + SelectInput, + SimpleForm, + TextInput, +} from "react-admin"; + +export const UserCreate = () => { + + + return ( + + + + + + + + + + + + + ) +} + +export default UserCreate; \ No newline at end of file