sonarlint improvements

This commit is contained in:
Proddy
2024-10-02 13:32:51 +02:00
parent 1eaa16995b
commit 8e6434cf7f
28 changed files with 459 additions and 610 deletions

View File

@@ -25,6 +25,7 @@ const Layout: FC<RequiredChildrenProps> = ({ children }) => {
useEffect(() => setMobileOpen(false), [pathname]);
return (
// TODO wrap title/setTitle in a useMemo()
<LayoutContext.Provider value={{ title, setTitle }}>
<LayoutAppBar title={title} onToggleDrawer={handleDrawerToggle} />
<LayoutDrawer mobileOpen={mobileOpen} onClose={handleDrawerToggle} />