fix(admin/users): Make table columns more compatible with filter conditions

This commit is contained in:
haitao(lj) 2022-12-08 10:26:17 +08:00
parent 46a2163e61
commit 39f749918e
1 changed files with 10 additions and 6 deletions

View File

@ -130,7 +130,9 @@ const Users: FC = () => {
)}
<th style={{ width: '12%' }}>{t('status')}</th>
<th style={{ width: '12%' }}>{t('role')}</th>
{curFilter !== 'suspended' && curFilter !== 'deleted' && (
<th style={{ width: '12%' }}>{t('role')}</th>
)}
{curFilter !== 'deleted' ? (
<th style={{ width: '8%' }} className="text-end">
{t('action')}
@ -172,11 +174,13 @@ const Users: FC = () => {
{t(user.status)}
</span>
</td>
<td>
<span className="badge text-bg-light">
{t(user.role_name)}
</span>
</td>
{curFilter !== 'suspended' && curFilter !== 'deleted' && (
<td>
<span className="badge text-bg-light">
{t(user.role_name)}
</span>
</td>
)}
{curFilter !== 'deleted' ? (
<td className="text-end">
<Dropdown>