Fix build errors

This commit is contained in:
Darren Clarke 2023-03-14 17:40:24 +00:00
parent 785d0965e3
commit d0f1c1337c
28 changed files with 268 additions and 112 deletions

View file

@ -25,7 +25,7 @@ type AccountEditToolbarProps = {
record?: any;
};
const AccountEditToolbar: FC<AccountEditToolbarProps> = (props) => {
const AccountEditToolbar: FC<AccountEditToolbarProps> = (props: any) => {
const { data: session } = useSession();
const classes = useStyles(props);
return (

View file

@ -14,9 +14,10 @@ type DeleteNotSelfButtonProps = {
record?: any;
};
const DeleteNotSelfButton: FC<DeleteNotSelfButtonProps> = (props) => {
const DeleteNotSelfButton: FC<DeleteNotSelfButtonProps> = (props: any) => {
const { data: session } = useSession();
return (
// @ts-ignore
<DeleteButton
disabled={session?.user?.email === props.record.userId}
{...props}