|
@@ -17,7 +17,7 @@ import { IPageHasId } from '~/interfaces/page';
|
|
|
import {
|
|
import {
|
|
|
IUserGroup, IUserGroupHasId, IUserGroupRelation,
|
|
IUserGroup, IUserGroupHasId, IUserGroupRelation,
|
|
|
} from '~/interfaces/user';
|
|
} from '~/interfaces/user';
|
|
|
-import { useSWRxUserGroupPages, useSWRxUserGroupRelations } from '~/stores/user-group';
|
|
|
|
|
|
|
+import { useSWRxUserGroupPages, useSWRxUserGroupRelations, useSWRxSelectableUserGroups } from '~/stores/user-group';
|
|
|
|
|
|
|
|
|
|
|
|
|
const UserGroupDetailPage: FC = () => {
|
|
const UserGroupDetailPage: FC = () => {
|
|
@@ -45,6 +45,7 @@ const UserGroupDetailPage: FC = () => {
|
|
|
*/
|
|
*/
|
|
|
const { data: userGroupPages } = useSWRxUserGroupPages(userGroup._id, 10, 0);
|
|
const { data: userGroupPages } = useSWRxUserGroupPages(userGroup._id, 10, 0);
|
|
|
const { data: userGroupRelations, mutate: mutateUserGroupRelations } = useSWRxUserGroupRelations(userGroup._id);
|
|
const { data: userGroupRelations, mutate: mutateUserGroupRelations } = useSWRxUserGroupRelations(userGroup._id);
|
|
|
|
|
+ const { data: selectableUserGroups } = useSWRxSelectableUserGroups(userGroup._id);
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
* Function
|
|
* Function
|