2
0
Эх сурвалжийг харах

Revert "passing header values as props"

This reverts commit 42899f94f18fb0e8e2939b0d0297ecdb302de59c.
Shun Miyazawa 4 жил өмнө
parent
commit
7a2d71dc11

+ 0 - 1
packages/app/src/components/Admin/UserGroup/UserGroupPage.tsx

@@ -130,7 +130,6 @@ const UserGroupPage: FC<Props> = (props: Props) => {
         (userGroups != null && userGroupRelations != null && childUserGroups != null) && (
         (userGroups != null && userGroupRelations != null && childUserGroups != null) && (
           <>
           <>
             <UserGroupTable
             <UserGroupTable
-              headerLabel={t('admin:user_group_management.group_list')}
               userGroups={userGroups}
               userGroups={userGroups}
               childUserGroups={childUserGroups}
               childUserGroups={childUserGroups}
               isAclEnabled={isAclEnabled}
               isAclEnabled={isAclEnabled}

+ 1 - 3
packages/app/src/components/Admin/UserGroup/UserGroupTable.tsx

@@ -2,7 +2,6 @@ import React, {
   FC, useState, useCallback, useEffect,
   FC, useState, useCallback, useEffect,
 } from 'react';
 } from 'react';
 import { useTranslation } from 'react-i18next';
 import { useTranslation } from 'react-i18next';
-import { TFunctionResult } from 'i18next';
 import dateFnsFormat from 'date-fns/format';
 import dateFnsFormat from 'date-fns/format';
 
 
 import Xss from '~/services/xss';
 import Xss from '~/services/xss';
@@ -10,7 +9,6 @@ import { IUserGroupHasId, IUserGroupRelation, IUserHasId } from '~/interfaces/us
 import { CustomWindow } from '~/interfaces/global';
 import { CustomWindow } from '~/interfaces/global';
 
 
 type Props = {
 type Props = {
-  headerLabel?: TFunctionResult,
   userGroups: IUserGroupHasId[],
   userGroups: IUserGroupHasId[],
   userGroupRelations: IUserGroupRelation[],
   userGroupRelations: IUserGroupRelation[],
   childUserGroups: IUserGroupHasId[],
   childUserGroups: IUserGroupHasId[],
@@ -92,7 +90,7 @@ const UserGroupTable: FC<Props> = (props: Props) => {
 
 
   return (
   return (
     <>
     <>
-      <h2>{props.headerLabel}</h2>
+      <h2>{t('admin:user_group_management.group_list')}</h2>
 
 
       <table className="table table-bordered table-user-list">
       <table className="table table-bordered table-user-list">
         <thead>
         <thead>