dialog component, dash & service-monitoring slice

This commit is contained in:
Muhammad Fajar
2022-11-17 11:09:31 +07:00
parent e8a9ee2ae9
commit b36603833b
11 changed files with 1158 additions and 294 deletions

View File

@@ -10,12 +10,18 @@ import { isExternalLink } from '..';
// ----------------------------------------------------------------------
export function NavItemRoot({ item, isCollapse, open = false, active, onOpen }: NavItemProps) {
const { title, path, icon, info, children } = item;
export function NavItemRoot({
item,
isCollapse,
open = false,
active = false,
onOpen,
}: NavItemProps) {
const { title, path, info, children } = item;
const renderContent = (
<>
{icon && <ListItemIconStyle>{icon}</ListItemIconStyle>}
<DotIcon active={active} />
<ListItemTextStyle disableTypography primary={title} isCollapse={isCollapse} />
{!isCollapse && (
<>