mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02:00
fix: network tab active state (#6154)
https://linear.app/unleash/issue/UNL-335/network-active-tab-state Fixes the tab active state in Network by using the new `TabLink` component. 
This commit is contained in:
parent
59a736f56b
commit
cc2ccb1134
@ -2,7 +2,7 @@ import { lazy } from 'react';
|
||||
|
||||
import { Tab, Tabs } from '@mui/material';
|
||||
import { Route, Routes, useLocation } from 'react-router-dom';
|
||||
import { CenteredNavLink } from '../menu/CenteredNavLink';
|
||||
import { TabLink } from 'component/common/TabNav/TabLink';
|
||||
import { PageContent } from 'component/common/PageContent/PageContent';
|
||||
|
||||
const NetworkOverview = lazy(() => import('./NetworkOverview/NetworkOverview'));
|
||||
@ -39,9 +39,9 @@ export const Network = () => {
|
||||
key={label}
|
||||
value={path}
|
||||
label={
|
||||
<CenteredNavLink to={path}>
|
||||
<TabLink to={path}>
|
||||
<span>{label}</span>
|
||||
</CenteredNavLink>
|
||||
</TabLink>
|
||||
}
|
||||
sx={{ padding: 0 }}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user