Shun Miyazawa 2 лет назад
Родитель
Сommit
757957ed83
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      apps/app/src/stores/bookmark.ts

+ 0 - 3
apps/app/src/stores/bookmark.ts

@@ -1,4 +1,3 @@
-import { IUserHasId } from '@growi/core';
 import { SWRResponse } from 'swr';
 import { SWRResponse } from 'swr';
 import useSWRImmutable from 'swr/immutable';
 import useSWRImmutable from 'swr/immutable';
 
 
@@ -21,8 +20,6 @@ export const useSWRBookmarkInfo = (pageId: string | null | undefined): SWRRespon
 };
 };
 
 
 export const useSWRxCurrentUserBookmarks = (userId?: string): SWRResponse<IPageHasId[], Error> => {
 export const useSWRxCurrentUserBookmarks = (userId?: string): SWRResponse<IPageHasId[], Error> => {
-  // const { data: currentUser } = useCurrentUser();
-  // const user = currentUser as IUserHasId;
   return useSWRImmutable(
   return useSWRImmutable(
     userId != null ? `/bookmarks/${userId}` : null,
     userId != null ? `/bookmarks/${userId}` : null,
     endpoint => apiv3Get(endpoint).then((response) => {
     endpoint => apiv3Get(endpoint).then((response) => {