Add row click handling to notificaitons table

This commit is contained in:
Alex Holliday committed 2025-06-10 14:03:49 +08:00
1 parent a105e85a5a
commit 7587fea6d5
2 files changed
+12 -1

No files matched your search

+10
View File
@@ -119,6 +119,16 @@ const Notifications = () => {
</Stack>
<Typography variant="h1">{t("notifications.createTitle")}</Typography>
<DataTable
config={{
onRowClick: (row) => navigate(`/notifications/${row._id}`),
rowSX: {
cursor: "pointer",
"&:hover td": {
backgroundColor: theme.palette.tertiary.main,
transition: "background-color .3s ease",
},
},
}}
headers={headers}
data={notifications}
/>