diff --git a/src/admin/pages/Dashboard.tsx b/src/admin/pages/Dashboard.tsx index eed3c92..2cea3f5 100644 --- a/src/admin/pages/Dashboard.tsx +++ b/src/admin/pages/Dashboard.tsx @@ -238,7 +238,8 @@ export default function Dashboard() { mb: 3, border: 2, borderColor: "error.main", - bgcolor: "error.light", + backgroundColor: + "rgba(var(--mui-palette-error-mainChannel) / 0.12)", }} > { const isInvalidated = q.status === "invalidated"; const isCompleted = !isInvalidated && q.order_status === "dokoncena"; @@ -654,31 +658,25 @@ export default function Offers() { new Date(q.valid_until) < new Date(new Date().toDateString()); if (isInvalidated) { return { - bgcolor: "error.light", - opacity: 0.9, - "&:hover": { - bgcolor: "error.light", - filter: "brightness(0.97)", - }, + opacity: 0.6, + "& td": { color: "var(--mui-palette-text-secondary)" }, }; } if (isCompleted) { return { - bgcolor: "success.light", - opacity: 0.85, + backgroundColor: "rgba(var(--mui-palette-success-mainChannel) / 0.12)", "&:hover": { - bgcolor: "success.light", - filter: "brightness(0.97)", + backgroundColor: + "rgba(var(--mui-palette-success-mainChannel) / 0.18)", }, }; } if (isExpired) { return { - bgcolor: "warning.light", - opacity: 0.85, + backgroundColor: "rgba(var(--mui-palette-warning-mainChannel) / 0.12)", "&:hover": { - bgcolor: "warning.light", - filter: "brightness(0.97)", + backgroundColor: + "rgba(var(--mui-palette-warning-mainChannel) / 0.18)", }, }; } diff --git a/src/admin/ui/DataTable.tsx b/src/admin/ui/DataTable.tsx index ec39fd3..6034599 100644 --- a/src/admin/ui/DataTable.tsx +++ b/src/admin/ui/DataTable.tsx @@ -99,7 +99,11 @@ export default function DataTable({ }, onRowClick ? { cursor: "pointer" } : {}, rowDanger?.(row) - ? { borderColor: "error.main", bgcolor: "error.light" } + ? { + borderColor: "error.main", + backgroundColor: + "rgba(var(--mui-palette-error-mainChannel) / 0.12)", + } : {}, rowInactive?.(row) ? { opacity: 0.55 } : {}, ...(Array.isArray(extra) ? extra : extra ? [extra] : []), @@ -235,11 +239,11 @@ export default function DataTable({ onRowClick ? { cursor: "pointer" } : {}, rowDanger?.(row) ? { - bgcolor: "error.light", - opacity: 0.88, + backgroundColor: + "rgba(var(--mui-palette-error-mainChannel) / 0.12)", "&:hover": { - bgcolor: "error.light", - filter: "brightness(0.97)", + backgroundColor: + "rgba(var(--mui-palette-error-mainChannel) / 0.18)", }, } : {},