Skip to content

Commit 9a3fb8b

Browse files
authored
Merge pull request #6463 from makeplane/chore-workspace-drafts-constant-language-support-and-refactor
chore workspace drafts constant refactor
2 parents 2e022a4 + 385be31 commit 9a3fb8b

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

packages/constants/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ export * from "./user";
1515
export * from "./workspace";
1616
export * from "./stickies";
1717
export * from "./profile";
18+
export * from "./workspace-drafts";
File renamed without changes.

web/core/components/issues/workspace-draft/root.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import { FC, Fragment } from "react";
44
import { observer } from "mobx-react";
55
import useSWR from "swr";
66
// plane imports
7+
import { EDraftIssuePaginationType } from "@plane/constants";
78
import { EUserPermissionsLevel, EUserWorkspaceRoles } from "@plane/constants/src/user";
89
import { useTranslation } from "@plane/i18n";
910
// components
1011
import { ComicBoxButton, DetailedEmptyState } from "@/components/empty-state";
1112
// constants
12-
import { EDraftIssuePaginationType } from "@/constants/workspace-drafts";
13+
1314
// helpers
1415
import { cn } from "@/helpers/common.helper";
1516
// hooks

web/core/hooks/use-issues-actions.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useCallback, useMemo } from "react";
22
// types
33
import { useParams } from "next/navigation";
4-
import { EIssueFilterType, EIssuesStoreType } from "@plane/constants";
4+
import { EIssueFilterType, EIssuesStoreType, EDraftIssuePaginationType } from "@plane/constants";
55
import {
66
IIssueDisplayFilterOptions,
77
IIssueDisplayProperties,
@@ -13,7 +13,6 @@ import {
1313
TLoader,
1414
TProfileViews,
1515
} from "@plane/types";
16-
import { EDraftIssuePaginationType } from "@/constants/workspace-drafts";
1716
import { useTeamIssueActions, useTeamViewIssueActions } from "@/plane-web/helpers/issue-action-helper";
1817
import { useIssues } from "./store";
1918

web/core/store/issue/workspace-draft/issue.store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import unset from "lodash/unset";
55
import update from "lodash/update";
66
import { action, computed, makeObservable, observable, runInAction } from "mobx";
77
import { computedFn } from "mobx-utils";
8+
// plane imports
9+
import { EDraftIssuePaginationType } from "@plane/constants";
810
import {
911
TWorkspaceDraftIssue,
1012
TWorkspaceDraftPaginationInfo,
@@ -19,7 +21,6 @@ import {
1921
TBulkOperationsPayload,
2022
} from "@plane/types";
2123
// constants
22-
import { EDraftIssuePaginationType } from "@/constants/workspace-drafts";
2324
// helpers
2425
import { getCurrentDateTimeInISO, convertToISODateString } from "@/helpers/date-time.helper";
2526
// local-db

0 commit comments

Comments
 (0)