mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
allow Links to open in new tab
This commit is contained in:
parent
09924d4f47
commit
7bd0781a69
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user