mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 23:29:37 +01:00
chore webhook create page removed (#3376)
* chore webhook create page removed * fix: removed unused variables
This commit is contained in:
committed by
sriram veeraghanta
parent
6a16a98b03
commit
ee387c4222
@@ -13,10 +13,6 @@ import { getCurrentHookAsCSV } from "./utils";
|
||||
// types
|
||||
import { IWebhook, IWorkspace, TWebhookEventTypes } from "@plane/types";
|
||||
|
||||
interface WebhookWithKey {
|
||||
webHook: IWebhook;
|
||||
secretKey: string | undefined;
|
||||
}
|
||||
interface ICreateWebhookModal {
|
||||
currentWorkspace: IWorkspace | null;
|
||||
isOpen: boolean;
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import React, { FC, useEffect, useState } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { observer } from "mobx-react-lite";
|
||||
// hooks
|
||||
import { useWebhook, useWorkspace } from "hooks/store";
|
||||
import useToast from "hooks/use-toast";
|
||||
import { useWebhook } from "hooks/store";
|
||||
// components
|
||||
import {
|
||||
WebhookIndividualEventOptions,
|
||||
@@ -37,14 +35,8 @@ export const WebhookForm: FC<Props> = observer((props) => {
|
||||
const { data, onSubmit, handleClose } = props;
|
||||
// states
|
||||
const [webhookEventType, setWebhookEventType] = useState<TWebhookEventTypes>("all");
|
||||
// router
|
||||
const router = useRouter();
|
||||
const { workspaceSlug } = router.query;
|
||||
// toast
|
||||
const { setToastAlert } = useToast();
|
||||
// store hooks
|
||||
const { currentWorkspace } = useWorkspace();
|
||||
const { createWebhook, updateWebhook, webhookSecretKey } = useWebhook();
|
||||
const {webhookSecretKey } = useWebhook();
|
||||
// use form
|
||||
const {
|
||||
handleSubmit,
|
||||
|
||||
Reference in New Issue
Block a user