Shun Miyazawa před 1 rokem
rodič
revize
231c4546d1
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      apps/app/src/stores/user.tsx

+ 3 - 2
apps/app/src/stores/user.tsx

@@ -1,9 +1,10 @@
-import type { IGrantedGroup, IUserHasId, Populated } from '@growi/core';
+import type { IUserHasId } from '@growi/core';
 import type { SWRResponse } from 'swr';
 import useSWR from 'swr';
 import useSWRImmutable from 'swr/immutable';
 
 import { apiv3Get } from '~/client/util/apiv3-client';
+import type { PopulatedGrantedGroup } from '~/interfaces/page-grant';
 import { checkAndUpdateImageUrlCached } from '~/stores/middlewares/user';
 
 export const useSWRxUsersList = (userIds: string[]): SWRResponse<IUserHasId[], Error> => {
@@ -51,7 +52,7 @@ export const useSWRxUsernames = (q: string, offset?: number, limit?: number, opt
 };
 
 type RelatedGroupsResponse = {
-  relatedGroups: Populated<IGrantedGroup, 'item'>[]
+  relatedGroups: PopulatedGrantedGroup[]
 }
 
 export const useSWRxUserRelatedGroups = (): SWRResponse<RelatedGroupsResponse, Error> => {