Skip to content

Commit

Permalink
Merge pull request #2285 from blockscout/v1351
Browse files Browse the repository at this point in the history
V1351
  • Loading branch information
isstuev authored Oct 14, 2024
2 parents 10e5e93 + 2ce0c41 commit aeac19d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion ui/pages/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ const Chart = () => {
router.push({
pathname: router.pathname,
query: { ...router.query, resolution },
});
},
undefined,
{ shallow: true },
);
}, [ setResolution, router ]);

const handleReset = React.useCallback(() => {
Expand Down
14 changes: 7 additions & 7 deletions ui/shared/EntityTags/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { EntityTag } from './types';

import { route } from 'nextjs-routes';
// import { route } from 'nextjs-routes';

export function getTagLinkParams(data: EntityTag): { type: 'external' | 'internal'; href: string } | undefined {
if (data.meta?.warpcastHandle) {
Expand All @@ -17,10 +17,10 @@ export function getTagLinkParams(data: EntityTag): { type: 'external' | 'interna
};
}

if (data.tagType === 'generic' || data.tagType === 'protocol') {
return {
type: 'internal',
href: route({ pathname: '/accounts/label/[slug]', query: { slug: data.slug, tagType: data.tagType, tagName: data.name } }),
};
}
// if (data.tagType === 'generic' || data.tagType === 'protocol') {
// return {
// type: 'internal',
// href: route({ pathname: '/accounts/label/[slug]', query: { slug: data.slug, tagType: data.tagType, tagName: data.name } }),
// };
// }
}
2 changes: 1 addition & 1 deletion ui/snippets/searchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const SearchBar = ({ isHomepage }: Props) => {
React.useEffect(() => {
handleSearchTermChange('');
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ router.pathname ]);
}, [ router.asPath?.split('?')?.[0] ]);

React.useEffect(() => {
const inputEl = inputRef.current;
Expand Down

0 comments on commit aeac19d

Please sign in to comment.