From e99cb02e3fa037e726c1e6e1d003f28605441f5b Mon Sep 17 00:00:00 2001 From: Jonathan Berger Date: Thu, 9 Jan 2025 20:44:40 +0100 Subject: [PATCH] Update MUI to v6 Change-type: patch --- package.json | 2 +- src/AutoUIApp/Sidebar.tsx | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 83b984a9..3a529b1b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "README.md" ], "dependencies": { - "@balena/ui-shared-components": "^10.3.0", + "@balena/ui-shared-components": "^11.0.0", "@rjsf/validator-ajv8": "^5.21.1", "ajv": "^8.12.0", "ajv-formats": "^3.0.1", diff --git a/src/AutoUIApp/Sidebar.tsx b/src/AutoUIApp/Sidebar.tsx index 232df6c9..2fbe2618 100644 --- a/src/AutoUIApp/Sidebar.tsx +++ b/src/AutoUIApp/Sidebar.tsx @@ -84,11 +84,12 @@ export const Sidebar = ({ - isCurrent - ? theme.palette.text.primary - : theme.palette.text.secondary - } + sx={{ + color: (theme) => + isCurrent + ? theme.palette.text.primary + : theme.palette.text.secondary, + }} display={isCollapsed ? 'none' : undefined} noWrap >