mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-09-11 07:08:42 -06:00
fix: decouple navigation from global update timer
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
|||||||
PeopleOutline as CommunityIcon
|
PeopleOutline as CommunityIcon
|
||||||
} from "@mui/icons-material";
|
} from "@mui/icons-material";
|
||||||
|
|
||||||
export default function NavigationSidebar({ currentPage, onNavigate }) {
|
function NavigationSidebar({ currentPage, onNavigate }) {
|
||||||
const [expandedNav, setExpandedNav] = useState({
|
const [expandedNav, setExpandedNav] = useState({
|
||||||
devices: true,
|
devices: true,
|
||||||
filters: true,
|
filters: true,
|
||||||
@@ -141,3 +141,5 @@ export default function NavigationSidebar({ currentPage, onNavigate }) {
|
|||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default React.memo(NavigationSidebar);
|
Reference in New Issue
Block a user