mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
added missing modifier for active status in users table
Signed-off-by: Andrii Podriez <andrey5577990@gmail.com>
This commit is contained in:
parent
0953db17ca
commit
b1628fa081
1 changed files with 5 additions and 1 deletions
|
@ -62,6 +62,10 @@ const Users = ({}) => {
|
|||
setIsNewModalOpened(false);
|
||||
}
|
||||
|
||||
const getIconForActiveColumn = (active) => {
|
||||
return <Icon icon={active ? 'check' : 'times'} />
|
||||
}
|
||||
|
||||
const handleEditUser = async (data) => {
|
||||
if(data){
|
||||
try {
|
||||
|
@ -188,7 +192,7 @@ const Users = ({}) => {
|
|||
<DataColumn title='Username' width='150' dataKey='username' />
|
||||
<DataColumn title='E-mail' dataKey='mail'/>
|
||||
<DataColumn title='Role' dataKey='role'/>
|
||||
<DataColumn title='Active' dataKey='active' modifier={(active) => {}}/>
|
||||
<DataColumn title='Active' dataKey='active' modifier={(active) => getIconForActiveColumn(active)}/>
|
||||
<ButtonColumn
|
||||
width='200'
|
||||
align='right'
|
||||
|
|
Loading…
Add table
Reference in a new issue