Explorar o código

fix lint error

Shun Miyazawa %!s(int64=2) %!d(string=hai) anos
pai
achega
793c91ce7c

+ 1 - 2
apps/app/src/components/PageEditor/LinkEditModal.tsx

@@ -2,6 +2,7 @@ import React, { useEffect, useState, useCallback } from 'react';
 
 import path from 'path';
 
+import Linker from '@growi/editor/src/services/link-util/Linker';
 import { useTranslation } from 'next-i18next';
 import {
   Modal,
@@ -13,8 +14,6 @@ import {
 } from 'reactstrap';
 import validator from 'validator';
 
-
-import Linker from '~/client/models/Linker';
 import { apiv3Get } from '~/client/util/apiv3-client';
 import { useLinkEditModal } from '~/stores/modal';
 import { useCurrentPagePath } from '~/stores/page';

+ 4 - 3
apps/app/src/stores/modal.tsx

@@ -3,11 +3,12 @@ import { useCallback, useMemo } from 'react';
 import type {
   IAttachmentHasId, IPageToDeleteWithMeta, IPageToRenameWithMeta, IUserGroupHasId,
 } from '@growi/core';
-import { SWRResponse } from 'swr';
+import type Linker from '@growi/editor/src/services/link-util/Linker';
+import type { SWRResponse } from 'swr';
+
 
-import Linker from '~/client/models/Linker';
 import MarkdownTable from '~/client/models/MarkdownTable';
-import { BookmarkFolderItems } from '~/interfaces/bookmark-info';
+import type { BookmarkFolderItems } from '~/interfaces/bookmark-info';
 import type {
   OnDuplicatedFunction, OnRenamedFunction, OnDeletedFunction, OnPutBackedFunction, onDeletedBookmarkFolderFunction, OnSelectedFunction,
 } from '~/interfaces/ui';