mirror of https://gitee.com/answerdev/answer.git
fix(admin/users): Make table columns more compatible with filter conditions
This commit is contained in:
parent
46a2163e61
commit
39f749918e
|
@ -130,7 +130,9 @@ const Users: FC = () => {
|
|||
)}
|
||||
|
||||
<th style={{ width: '12%' }}>{t('status')}</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>
|
||||
{curFilter !== 'suspended' && curFilter !== 'deleted' && (
|
||||
<td>
|
||||
<span className="badge text-bg-light">
|
||||
{t(user.role_name)}
|
||||
</span>
|
||||
</td>
|
||||
)}
|
||||
{curFilter !== 'deleted' ? (
|
||||
<td className="text-end">
|
||||
<Dropdown>
|
||||
|
|
Loading…
Reference in New Issue