|
@@ -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>
|