mirror of
https://github.com/siemens-mobile-hacks/web-tools.git
synced 2026-11-25 17:17:22 +00:00
Enhance sidebar
This commit is contained in:
parent
b14740531e
commit
4391c2d60b
1 changed files with 22 additions and 16 deletions
|
|
@ -57,14 +57,14 @@ export const DrawerLink: Component<DrawerLinkProps> = (props) => {
|
|||
return (
|
||||
<Show when={props.sublinks && props.sublinks.length > 0} fallback={
|
||||
<ListItemButton component={A} href={props.url ?? ""} selected={isSelected()} sx={{ pl: depth() * 2 }}>
|
||||
<ListItemIcon>
|
||||
<ListItemIcon sx={{ minWidth: "2.5em" }}>
|
||||
{props.icon}
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={props.title} />
|
||||
</ListItemButton>
|
||||
}>
|
||||
<ListItemButton onClick={() => setIsOpen((prev) => !prev)} sx={{ pl: depth() * 2 }}>
|
||||
<ListItemIcon>
|
||||
<ListItemIcon sx={{ minWidth: "2.5em" }}>
|
||||
{props.icon}
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={props.title} />
|
||||
|
|
@ -90,19 +90,20 @@ export const AppDrawer: Component<AppDrawerProps> = (props) => {
|
|||
|
||||
const links: DrawerLinkProps[] = [
|
||||
{
|
||||
icon: <ScreenshotIcon />,
|
||||
title: "Screenshotter",
|
||||
url: "/screenshot",
|
||||
},
|
||||
{
|
||||
icon: <SdCardIcon />,
|
||||
title: "RAM dumper",
|
||||
url: "/dumper",
|
||||
},
|
||||
{
|
||||
icon: <MailIcon />,
|
||||
title: "SMS Reader",
|
||||
url: "/sms-reader",
|
||||
icon: <PhonelinkSetupIcon />,
|
||||
title: "SGOLD Tools",
|
||||
sublinks: [
|
||||
{
|
||||
icon: <ScreenshotIcon />,
|
||||
title: "Screenshotter",
|
||||
url: "/screenshot",
|
||||
},
|
||||
{
|
||||
icon: <SdCardIcon />,
|
||||
title: "RAM dumper",
|
||||
url: "/dumper",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
icon: <PhonelinkSetupIcon />,
|
||||
|
|
@ -121,7 +122,12 @@ export const AppDrawer: Component<AppDrawerProps> = (props) => {
|
|||
url: "/dumper/dwd",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
icon: <MailIcon />,
|
||||
title: "SMS Reader",
|
||||
url: "/sms-reader",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue