[WEB-4117] refactor: work item widgets code split (#7078)
* refactor: work item widget code split * fix: types
This commit is contained in:
parent
2a2feaf88e
commit
2d475491e9
12 changed files with 88 additions and 41 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { FC } from "react";
|
||||
// plane types
|
||||
import { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
||||
|
||||
export type TWorkItemAdditionalWidgetActionButtonsProps = {
|
||||
disabled: boolean;
|
||||
hideWidgets: TWorkItemWidgets[];
|
||||
issueServiceType: TIssueServiceType;
|
||||
projectId: string;
|
||||
workItemId: string;
|
||||
workspaceSlug: string;
|
||||
};
|
||||
|
||||
export const WorkItemAdditionalWidgetActionButtons: FC<TWorkItemAdditionalWidgetActionButtonsProps> = () => null;
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { FC } from "react";
|
||||
|
||||
export type TWorkItemAdditionalWidgets = {
|
||||
workspaceSlug: string;
|
||||
projectId: string;
|
||||
workItemId: string;
|
||||
disabled: boolean;
|
||||
};
|
||||
|
||||
export const WorkItemAdditionalWidgets: FC<TWorkItemAdditionalWidgets> = (props) => <></>;
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
import { FC } from "react";
|
||||
// plane types
|
||||
import { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
||||
|
||||
export type TWorkItemAdditionalWidgetCollapsiblesProps = {
|
||||
disabled: boolean;
|
||||
hideWidgets: TWorkItemWidgets[];
|
||||
issueServiceType: TIssueServiceType;
|
||||
projectId: string;
|
||||
workItemId: string;
|
||||
workspaceSlug: string;
|
||||
};
|
||||
|
||||
export const WorkItemAdditionalWidgetCollapsibles: FC<TWorkItemAdditionalWidgetCollapsiblesProps> = () => null;
|
||||
|
|
@ -1 +0,0 @@
|
|||
export * from "./additional-widgets";
|
||||
13
web/ce/components/issues/issue-detail-widgets/modals.tsx
Normal file
13
web/ce/components/issues/issue-detail-widgets/modals.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { FC } from "react";
|
||||
// plane types
|
||||
import { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
||||
|
||||
export type TWorkItemAdditionalWidgetModalsProps = {
|
||||
hideWidgets: TWorkItemWidgets[];
|
||||
issueServiceType: TIssueServiceType;
|
||||
projectId: string;
|
||||
workItemId: string;
|
||||
workspaceSlug: string;
|
||||
};
|
||||
|
||||
export const WorkItemAdditionalWidgetModals: FC<TWorkItemAdditionalWidgetModalsProps> = () => null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue