Commit 84c980b0 authored by Yuliya Sharafitdinova's avatar Yuliya Sharafitdinova

Merge branch 'main' of github.com:blockscout/frontend

parents 5f14933f f002b82f
......@@ -3,6 +3,7 @@ import NextLink from 'next/link';
import { route } from 'nextjs-routes';
import React from 'react';
import useIsMobile from 'lib/hooks/useIsMobile';
import type { NavItem } from 'lib/hooks/useNavItems';
import { isInternalItem } from 'lib/hooks/useNavItems';
......@@ -17,6 +18,7 @@ type Props = {
}
const NavLink = ({ item, isCollapsed, px, className }: Props) => {
const isMobile = useIsMobile();
const colors = useColors();
const isExpanded = isCollapsed === false;
......@@ -45,7 +47,7 @@ const NavLink = ({ item, isCollapsed, px, className }: Props) => {
<Tooltip
label={ item.text }
hasArrow={ false }
isDisabled={ isCollapsed === false || (isCollapsed === undefined && isXLScreen) }
isDisabled={ isMobile || isCollapsed === false || (isCollapsed === undefined && isXLScreen) }
placement="right"
variant="nav"
gutter={ 20 }
......
......@@ -94,7 +94,7 @@ const Tokens = () => {
}
if (!data.items.length) {
if (debouncedFilter) {
if (debouncedFilter || type) {
return (
<>
{ bar }
......
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