1
0
Fork 0
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:
Andrii Podriez 2024-09-18 12:00:03 +02:00 committed by Youssef Nakti
parent 0953db17ca
commit b1628fa081

View file

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