fix: create more toggle fixes in create issue modal (#3355)
* fix: create more issue bugfixes * fix: removing all warning
This commit is contained in:
parent
a679b42200
commit
7ff91fdb82
30 changed files with 119 additions and 98 deletions
|
|
@ -6,7 +6,7 @@ import { Controller, useForm } from "react-hook-form";
|
|||
import { Sparkle } from "lucide-react";
|
||||
import debounce from "lodash/debounce";
|
||||
// hooks
|
||||
import { useApplication, useIssues, useUser } from "hooks/store";
|
||||
import { useApplication, useUser } from "hooks/store";
|
||||
import useToast from "hooks/use-toast";
|
||||
import useReloadConfirmations from "hooks/use-reload-confirmation";
|
||||
// services
|
||||
|
|
@ -33,7 +33,6 @@ import { IPage, TIssue } from "@plane/types";
|
|||
import { PAGE_DETAILS, PROJECT_ISSUES_LIST } from "constants/fetch-keys";
|
||||
// constants
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { EIssuesStoreType } from "constants/issue";
|
||||
|
||||
// services
|
||||
const fileService = new FileService();
|
||||
|
|
@ -50,9 +49,6 @@ const PageDetailsPage: NextPageWithLayout = observer(() => {
|
|||
const router = useRouter();
|
||||
const { workspaceSlug, projectId, pageId } = router.query;
|
||||
// store hooks
|
||||
const {
|
||||
issues: { updateIssue },
|
||||
} = useIssues(EIssuesStoreType.PROJECT);
|
||||
const {
|
||||
config: { envConfig },
|
||||
} = useApplication();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useState, useEffect } from "react";
|
||||
import { useState } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import { observer } from "mobx-react-lite";
|
||||
import useSWR from "swr";
|
||||
|
|
@ -28,7 +28,7 @@ const WebhookDetailsPage: NextPageWithLayout = observer(() => {
|
|||
const {
|
||||
membership: { currentWorkspaceRole },
|
||||
} = useUser();
|
||||
const { currentWebhook, clearSecretKey, fetchWebhookById, updateWebhook } = useWebhook();
|
||||
const { currentWebhook, fetchWebhookById, updateWebhook } = useWebhook();
|
||||
// toast
|
||||
const { setToastAlert } = useToast();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue