optional open links in new tab

This commit is contained in:
Anton 2023-10-09 20:12:39 +02:00
parent 690a069dbd
commit e049152347

View File

@ -14,6 +14,7 @@ type route = {
icon: JSX.Element;
name: string;
submenu?: route;
blank?: boolean
}
@ -102,6 +103,7 @@ export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoute
<SidebarSubmenu {...route} /> :
(<NavLink
end
target={route.blank ? "_blank" : "_self"}
to={route.path}
className={({ isActive }) => `${isActive ? 'tw-font-semibold tw-bg-base-200 !tw-rounded-none' : 'tw-font-normal !tw-rounded-none'}`} onClick={() => {
if (screen.width < 640 && !slim) instance.toggle();