diff --git a/raven-app/src/components/feature/integrations/webhooks/WebhookReturnDataFieldTable.tsx b/raven-app/src/components/feature/integrations/webhooks/WebhookReturnDataFieldTable.tsx index e21fa8d82..b07fc2199 100644 --- a/raven-app/src/components/feature/integrations/webhooks/WebhookReturnDataFieldTable.tsx +++ b/raven-app/src/components/feature/integrations/webhooks/WebhookReturnDataFieldTable.tsx @@ -1,11 +1,11 @@ -import { HelperText } from "@/components/common/Form"; +import { HelperText, Label } from "@/components/common/Form"; import { Webhook } from "@/types/Integrations/Webhook"; -import { Flex, Box, Heading, Table, TextFieldInput, IconButton, Button, Select, Text, Dialog, Badge } from "@radix-ui/themes"; -import { useCallback, useMemo, useState } from "react"; +import { Flex, Box, Heading, Table, TextFieldInput, IconButton, Button, Select, Dialog, Badge } from "@radix-ui/themes"; +import { useMemo, useState } from "react"; import { Controller, useFieldArray, useFormContext } from "react-hook-form"; import { BiInfoCircle, BiMinusCircle } from "react-icons/bi"; import { BsEye, BsPlus } from "react-icons/bs"; -import { FieldsData, TriggerEvents } from "./utils"; +import { FieldsData, SampleData, } from "./utils"; import { DoctypeFieldList } from './utils' import { DIALOG_CONTENT_CLASS } from "@/utils/layout/dialog"; import { RavenWebhook } from "@/types/RavenIntegrations/RavenWebhook"; @@ -32,11 +32,11 @@ export const WebhookData = () => { setFieldIndex(null) } - // const [previewOpen, setPreviewOpen] = useState(false); + const [previewOpen, setPreviewOpen] = useState(false); - // const onPreviewClose = () => { - // setPreviewOpen(false) - // } + const onPreviewClose = () => { + setPreviewOpen(false) + } return ( @@ -47,18 +47,18 @@ export const WebhookData = () => { The fields you want to return in the webhook response. - {/* + - + - */} +