Make sidebar menus dynamic
Open and Update Sidebar Component
import menus from "./menus";
//--- other import statements
const Sidebar = () => {
return (
<React.Fragment>
<SidebarHeader/>
<JumboScrollbar
autoHide
autoHideDuration={200}
autoHideTimeout={500}
>
<Suspense
fallback={
<Div
sx={{
display: 'flex',
minWidth: 0,
alignItems: 'center',
alignContent: 'center',
px: 3
}}
>
<SidebarSkeleton/>
</Div>
}
>
<JumboVerticalNavbar translate items={menus}/>
</Suspense>
</JumboScrollbar>
</React.Fragment>
);
};
//--- rest of the codeMake items prop Value Dynamic
Last updated