We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d69d2 commit e397e00Copy full SHA for e397e00
src/pages/groups/Audit.tsx
@@ -256,10 +256,10 @@ export default function AuditGroup() {
256
<TableRow
257
key={row.id}
258
sx={{
259
- backgroundColor: ({palette}) =>
260
- Object.values(row.ended_at == null || dayjs().isBefore(dayjs(row.ended_at)))
261
- ? palette.highlight.success.main
262
- : palette.highlight.danger.main,
+ bgcolor: ({palette: {highlight}}) =>
+ row.ended_at == null || dayjs().isBefore(dayjs(row.ended_at))
+ ? highlight.success.main
+ : highlight.danger.main,
263
}}>
264
<TableCell>
265
{(row.user?.deleted_at ?? null) != null ? (
0 commit comments