Commit c0caf508 authored by isstuev's avatar isstuev

fix

parent 70a126d1
......@@ -95,7 +95,7 @@ export default function useNavItems(): ReturnType {
};
const verifiedContracts =
// eslint-disable-next-line max-len
{ text: 'Verified contracts', nextRoute: { pathname: '/verified-contracts' as const }, icon: verifiedIcon, isActive: false, isNewUi: true };
{ text: 'Verified contracts', nextRoute: { pathname: '/verified-contracts' as const }, icon: verifiedIcon, isActive: false, isNewUi: false };
if (appConfig.L2.isL2Network) {
blockchainNavItems = [
......@@ -140,7 +140,7 @@ export default function useNavItems(): ReturnType {
nextRoute: { pathname: '/graphiql' as const },
icon: graphQLIcon,
isActive: pathname === '/graphiql',
isNewUi: true,
isNewUi: false,
},
{
text: 'RPC API',
......
......@@ -27,7 +27,7 @@ const NavLink = ({ item, isCollapsed, px, className }: Props) => {
let href: string| undefined;
if (isInternalItem(item)) {
item.isNewUi ? route(item.nextRoute) : undefined;
href = !item.isNewUi ? route(item.nextRoute) : undefined;
} else {
href = item.url;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment