kazutoweseek 1 год назад
Родитель
Сommit
422b330fdb
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      apps/app/src/client/components/Admin/UserGroup/UserGroupTable.tsx

+ 3 - 2
apps/app/src/client/components/Admin/UserGroup/UserGroupTable.tsx

@@ -5,6 +5,7 @@ import type { IUserGroupHasId, IUserGroupRelation, IUserHasId } from '@growi/cor
 import { format as dateFnsFormat } from 'date-fns/format';
 import { format as dateFnsFormat } from 'date-fns/format';
 import { useTranslation } from 'next-i18next';
 import { useTranslation } from 'next-i18next';
 import Link from 'next/link';
 import Link from 'next/link';
+import { Item } from 'yjs';
 
 
 import type { IExternalUserGroupHasId } from '~/features/external-user-group/interfaces/external-user-group';
 import type { IExternalUserGroupHasId } from '~/features/external-user-group/interfaces/external-user-group';
 
 
@@ -137,7 +138,7 @@ export const UserGroupTable: FC<Props> = ({
     setGroupIdToChildGroupsMap(generateGroupIdToChildGroupsMap(childUserGroups));
     setGroupIdToChildGroupsMap(generateGroupIdToChildGroupsMap(childUserGroups));
   }, [userGroupRelations, childUserGroups]);
   }, [userGroupRelations, childUserGroups]);
   const [hoveredindex, setHoveredIdex] = useState<undefined | number>(undefined);
   const [hoveredindex, setHoveredIdex] = useState<undefined | number>(undefined);
-  const ButtonForUserGroupedit = async(index) => {
+  const ButtonForUserGroupedit = (index) => {
     return (
     return (
       <span className={`material-symbols-outlined px-2 py-0 ${hoveredindex === index ? '' : 'opacity-0'}`}>edit</span>
       <span className={`material-symbols-outlined px-2 py-0 ${hoveredindex === index ? '' : 'opacity-0'}`}>edit</span>
     );
     );
@@ -180,7 +181,7 @@ export const UserGroupTable: FC<Props> = ({
                       >
                       >
                         <span className="material-symbols-outlined pe-2 pt-2">group</span>
                         <span className="material-symbols-outlined pe-2 pt-2">group</span>
                         <span className="text-decoration-underline">{group.name}</span>
                         <span className="text-decoration-underline">{group.name}</span>
-                        <span className={`material-symbols-outlined px-2 py-0 ${hoveredindex === index ? '' : 'opacity-0'}`}>edit</span>
+                        <ButtonForUserGroupedit />
                       </Link>
                       </Link>
                     </td>
                     </td>
                   )
                   )