From 14704decfa18f4202dc486397cecff82d053d5d1 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 5 Feb 2025 14:43:22 +0530 Subject: [PATCH] feat: add page to update webhook --- ui/src/components/CustomField.tsx | 163 ++++++++-------- ui/src/containers/webhooks/update/index.tsx | 198 ++++++++++++++++++++ ui/src/routes.tsx | 2 + 3 files changed, 286 insertions(+), 77 deletions(-) create mode 100644 ui/src/containers/webhooks/update/index.tsx diff --git a/ui/src/components/CustomField.tsx b/ui/src/components/CustomField.tsx index 1722d1d2c..2bf19d430 100644 --- a/ui/src/components/CustomField.tsx +++ b/ui/src/components/CustomField.tsx @@ -11,9 +11,11 @@ import React, { CSSProperties } from "react"; import { Control, Controller, UseFormRegister } from "react-hook-form"; import { capitalizeFirstLetter } from "~/utils/helper"; import { MultiSelect } from "./multiselect"; +import Skeleton from "react-loading-skeleton"; type CustomFieldNameProps = { name: string; + isLoading?: boolean; title?: string; disabled?: boolean; register: UseFormRegister; @@ -33,6 +35,7 @@ export const CustomFieldName = ({ style = {}, placeholder, options = [], + isLoading = false, ...props }: FormFieldProps & CustomFieldNameProps & @@ -64,86 +67,92 @@ export const CustomFieldName = ({ - { - switch (variant) { - case "textarea": { - return ( -