Shun Miyazawa 4 ani în urmă
părinte
comite
ca6b6574ee

+ 6 - 1
packages/app/src/components/Admin/UserGroupDetail/UserGroupDetailPage.tsx

@@ -46,6 +46,9 @@ 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);
 
 
+  // TODO 85844: Fetch /user-groups/selectable-groups with SWR
+  const selectableUserGroups: IUserGroupHasId[] = [];
+
   /*
   /*
    * Function
    * Function
    */
    */
@@ -104,10 +107,12 @@ const UserGroupDetailPage: FC = () => {
     mutateUserGroupRelations();
     mutateUserGroupRelations();
   }, [userGroup, mutateUserGroupRelations]);
   }, [userGroup, mutateUserGroupRelations]);
 
 
+  // TODO: 87671 Add existing group
   const onClickAddChildButton = (userGroup: IUserGroupHasId) => {
   const onClickAddChildButton = (userGroup: IUserGroupHasId) => {
     console.log(userGroup);
     console.log(userGroup);
   };
   };
 
 
+  // TODO 87614: UserGroup New creation form can be displayed in modal
   const onClickCreateGroupButton = () => {
   const onClickCreateGroupButton = () => {
     console.log('button clicked!');
     console.log('button clicked!');
   };
   };
@@ -148,7 +153,7 @@ const UserGroupDetailPage: FC = () => {
 
 
         <div className="dropdown-menu" aria-labelledby="dropdownMenuButton">
         <div className="dropdown-menu" aria-labelledby="dropdownMenuButton">
           {
           {
-            userGroups.map(userGroup => (
+            selectableUserGroups.map(userGroup => (
               <button
               <button
                 key={userGroup._id}
                 key={userGroup._id}
                 type="button"
                 type="button"