Skip to content

Commit

Permalink
Group Audit Color Bug (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
eguerrant authored Nov 7, 2024
1 parent 46d69d2 commit e397e00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/groups/Audit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ export default function AuditGroup() {
<TableRow
key={row.id}
sx={{
backgroundColor: ({palette}) =>
Object.values(row.ended_at == null || dayjs().isBefore(dayjs(row.ended_at)))
? palette.highlight.success.main
: palette.highlight.danger.main,
bgcolor: ({palette: {highlight}}) =>
row.ended_at == null || dayjs().isBefore(dayjs(row.ended_at))
? highlight.success.main
: highlight.danger.main,
}}>
<TableCell>
{(row.user?.deleted_at ?? null) != null ? (
Expand Down

0 comments on commit e397e00

Please sign in to comment.