Przeglądaj źródła

IUserGroupRelation[] -> IGrantedGroup[]

Shun Miyazawa 1 rok temu
rodzic
commit
c39133c425
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      apps/app/src/stores/user.tsx

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

@@ -1,4 +1,4 @@
-import type { IUserGroupRelation, IUserHasId } from '@growi/core';
+import type { IGrantedGroup, IUserHasId } from '@growi/core';
 import type { SWRResponse } from 'swr';
 import type { SWRResponse } from 'swr';
 import useSWR from 'swr';
 import useSWR from 'swr';
 import useSWRImmutable from 'swr/immutable';
 import useSWRImmutable from 'swr/immutable';
@@ -51,7 +51,7 @@ export const useSWRxUsernames = (q: string, offset?: number, limit?: number, opt
 };
 };
 
 
 type RelatedGroupsResponse = {
 type RelatedGroupsResponse = {
-  relatedGroups: IUserGroupRelation[],
+  relatedGroups: IGrantedGroup[]
 }
 }
 
 
 export const useSWRxUserRelatedGroups = (): SWRResponse<RelatedGroupsResponse, Error> => {
 export const useSWRxUserRelatedGroups = (): SWRResponse<RelatedGroupsResponse, Error> => {