allow Links to open in new tab

This commit is contained in:
Anton Tranelis 2024-02-02 13:39:58 +01:00
parent 09924d4f47
commit 7bd0781a69

View File

@ -70,8 +70,9 @@ export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoute
{
route.submenu ?
<SidebarSubmenu {...route} /> :
(<NavLink
(<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();