kazutoweseek 1 rok temu
rodzic
commit
0d48a1b3c3

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

@@ -137,14 +137,9 @@ export const UserGroupTable: FC<Props> = ({
     setGroupIdToChildGroupsMap(generateGroupIdToChildGroupsMap(childUserGroups));
   }, [userGroupRelations, childUserGroups]);
   const [hoveredindex, setHoveredIdex] = useState<undefined | number>(undefined);
-  const ButtonForUserGroupedit = (index) => {
+  const ButtonForUserGroupedit = async(index) => {
     return (
-      <button
-        className="btn btn-link btn-edit-groups text-secondary py-0"
-        type="button"
-      >
-        <span className={`material-symbols-outlined px-2 py-0 ${hoveredindex === index ? '' : 'opacity-0'}`}>edit</span>
-      </button>
+      <span className={`material-symbols-outlined px-2 py-0 ${hoveredindex === index ? '' : 'opacity-0'}`}>edit</span>
     );
   };