Skip to content

@k8slens/extensions

Globals / "src/renderer/components/layout/tab-layout"

Module: "src/renderer/components/layout/tab-layout"#

Index#

Interfaces#

Variables#

Variables#

TabLayout#

Const TabLayout: (Anonymous function) = observer(({ className, contentClass, tabs, children }: TabLayoutProps) => { const routePath = navigation.location.pathname; return ( \

{tabs && ( \ navigate(url)}> {tabs.map(({ title, path, url, ...routeProps }) => { const isActive = !!matchPath(routePath, { path, ...routeProps }); return \; })} \ )} \
\{children}\ \
\
);})

Defined in src/renderer/components/layout/tab-layout.tsx:22


Last update: November 10, 2020