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

@ -11,7 +11,7 @@ import {
} from "react-admin";
import { BackendTypeInput, BackendIdInput, HttpMethodInput } from "./shared";
const WebhookTitle = ({ record }) => {
const WebhookTitle = ({ record }: any) => {
let title = "";
if (record) title = record.name ? record.name : record.email;
return <span>Webhook {title}</span>;
@ -19,7 +19,6 @@ const WebhookTitle = ({ record }) => {
const WebhookEdit = (props: EditProps) => {
return (
// @ts-expect-error: Missing props
<Edit title={<WebhookTitle />} {...props}>
<SimpleForm>
<TextInput source="name" validate={[required()]} />