Create Webhook interface

This commit is contained in:
Hongbo Wu
2022-06-02 18:44:04 +08:00
parent b7bb5a258b
commit 0eeb005c14

View File

@ -12,7 +12,17 @@ import { ConfirmationModal } from '../../components/patterns/ConfirmationModal'
import { deleteWebhookMutation } from '../../lib/networking/mutations/deleteWebhookMutation'
import { FormInputProps, FormModal } from '../../components/patterns/FormModal'
import { setWebhookMutation } from '../../lib/networking/mutations/setWebhookMutation'
import { useGetWebhookQuery } from '../../lib/networking/queries/useGetWebhookQuery'
interface Webhook {
id?: string
url: string
eventTypes: string
contentType?: string
method?: string
enabled: string
createdAt?: Date
updatedAt?: Date
}
export default function Webhooks(): JSX.Element {
const { webhooks, revalidate } = useGetWebhooksQuery()