Skip to content

Commit 260fd1a

Browse files
committed
refactor: move webhook events to utils folder
1 parent d1881e7 commit 260fd1a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ui/src/containers/webhooks/create/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { FormProvider, useForm } from "react-hook-form";
77
import { zodResolver } from "@hookform/resolvers/zod";
88
import { Form, FormSubmit } from "@radix-ui/react-form";
99
import { CustomFieldName } from "~/components/CustomField";
10-
import events from "./events";
10+
import events from "~/utils/webhook_events";
1111
import { SheetFooter } from "~/components/sheet/footer";
1212
import { useFrontier } from "@raystack/frontier/react";
1313
import { V1Beta1WebhookRequestBody } from "@raystack/frontier";
@@ -77,7 +77,11 @@ export default function CreateWebhooks() {
7777
>
7878
<FormProvider {...methods}>
7979
<Form onSubmit={methods.handleSubmit(onSubmit)}>
80-
<SheetHeader title="Add new Webhook" onClick={onOpenChange} data-test-id="admin-ui-add-new-webhook-btn" />
80+
<SheetHeader
81+
title="Add new Webhook"
82+
onClick={onOpenChange}
83+
data-test-id="admin-ui-add-new-webhook-btn"
84+
/>
8185
<Flex direction="column" gap="large" style={styles.main}>
8286
<CustomFieldName
8387
name="url"

0 commit comments

Comments
 (0)