update dashboard

created a sort by online status
pull/16/head
Renato Di Giacomo 2022-08-03 14:33:08 -03:00
parent f272433019
commit 832694a311
1 changed files with 9 additions and 1 deletions

View File

@ -497,7 +497,15 @@ const Dashboard = () => {
}) })
.filter((e) => { .filter((e) => {
return e.name.toLowerCase().includes(search); return e.name.toLowerCase().includes(search);
}) }).sort((a) => {
if (a.statusOnline) {
if (a.statusOnline.status === "online") {
return -1;
}
return 0;
}
return 0;
})
.map((user, index) => ( .map((user, index) => (
<Grid <Grid
item item