A few react-admin upgrades

as per https://marmelab.com/react-admin/Upgrade.html
This commit is contained in:
Abel Luck 2023-06-07 12:14:12 +00:00
parent cdccc7f062
commit 49650795df
6 changed files with 41 additions and 34 deletions

View file

@ -9,10 +9,10 @@ import {
import { useSession } from "next-auth/react";
import { UserRoleInput } from "./shared";
const UserCreate: FC<CreateProps> = (props: any) => {
const UserCreate: FC<CreateProps> = () => {
const { data: session } = useSession();
return (
<Create {...props} title="Create Users">
<Create title="Create Users">
<SimpleForm>
<TextInput source="email" />
<TextInput source="name" />