mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 22:09:12 +02:00
refactor: migrate hooks (use-file-size) from web/app/ce to web/app/core
This commit is contained in:
@@ -16,7 +16,7 @@ import { EIssueServiceType } from "@plane/types";
|
||||
// hooks
|
||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||
// plane web hooks
|
||||
import { useFileSize } from "@/plane-web/hooks/use-file-size";
|
||||
import { useFileSize } from "@/hooks/use-file-size";
|
||||
// types
|
||||
import type { TAttachmentHelpers } from "../issue-detail-widgets/attachments/helper";
|
||||
// components
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useCallback, useState } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useDropzone } from "react-dropzone";
|
||||
// plane web hooks
|
||||
import { useFileSize } from "@/plane-web/hooks/use-file-size";
|
||||
import { useFileSize } from "@/hooks/use-file-size";
|
||||
// types
|
||||
import type { TAttachmentOperations } from "../issue-detail-widgets/attachments/helper";
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import type { TIssueServiceType } from "@plane/types";
|
||||
// hooks
|
||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||
// plane web hooks
|
||||
import { useFileSize } from "@/plane-web/hooks/use-file-size";
|
||||
import { useFileSize } from "@/hooks/use-file-size";
|
||||
// local imports
|
||||
import { useAttachmentOperations } from "./helper";
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import { getEditorAssetDownloadSrc, getEditorAssetSrc } from "@plane/utils";
|
||||
import { useEditorAsset } from "@/hooks/store/use-editor-asset";
|
||||
// plane web hooks
|
||||
import { useExtendedEditorConfig } from "@/plane-web/hooks/editor/use-extended-editor-config";
|
||||
import { useFileSize } from "@/plane-web/hooks/use-file-size";
|
||||
import { useFileSize } from "@/hooks/use-file-size";
|
||||
// services
|
||||
import { FileService } from "@/services/file.service";
|
||||
const fileService = new FileService();
|
||||
|
||||
Reference in New Issue
Block a user