|
@@ -2,6 +2,7 @@ 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';
|
|
@@ -9,6 +10,7 @@ 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[],
|
|
@@ -90,7 +92,7 @@ const UserGroupTable: FC<Props> = (props: Props) => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <h2>{t('admin:user_group_management.group_list')}</h2>
|
|
|
|
|
|
|
+ <h2>{props.headerLabel}</h2>
|
|
|
|
|
|
|
|
<table className="table table-bordered table-user-list">
|
|
<table className="table table-bordered table-user-list">
|
|
|
<thead>
|
|
<thead>
|