Skip to content
Snippets Groups Projects
Commit e7d1bd6d authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

refactor(admin-users): show inactive first

parent f97a3e2d
No related branches found
No related tags found
1 merge request!14Sprint #15
......@@ -142,10 +142,10 @@ export default compose(
setPage(p => (p > 0 ? p - 1 : p))
},
getStatusLabel: () => ({ isConfirmed, isActive = true }) => () => {
if (isConfirmed) {
return isActive ? 'Active' : 'Inactive'
if (!isActive) {
return 'Inactive'
}
return 'Invited'
return isConfirmed ? 'Active' : 'Invited'
},
toggleUserStatus: ({
dispatch,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment