diff --git a/apps/web/src/modules/analyze/DataView/OverviewSummary/CommunityRepos.tsx b/apps/web/src/modules/analyze/DataView/OverviewSummary/CommunityRepos.tsx index beecae56..f00eab71 100644 --- a/apps/web/src/modules/analyze/DataView/OverviewSummary/CommunityRepos.tsx +++ b/apps/web/src/modules/analyze/DataView/OverviewSummary/CommunityRepos.tsx @@ -29,11 +29,7 @@ const RepoItem: React.FC<{ return (
{getFirstPathSegment(path)}
diff --git a/apps/web/src/modules/analyze/DataView/OverviewSummary/TableList.tsx b/apps/web/src/modules/analyze/DataView/OverviewSummary/TableList.tsx index 9aad57e7..535b9a69 100644 --- a/apps/web/src/modules/analyze/DataView/OverviewSummary/TableList.tsx +++ b/apps/web/src/modules/analyze/DataView/OverviewSummary/TableList.tsx @@ -147,10 +147,7 @@ const TrendsList: React.FC = () => { return ({r.name} {item?.level === Level.COMMUNITY ? ( diff --git a/apps/web/src/modules/collection/MainHeader.tsx b/apps/web/src/modules/collection/MainHeader.tsx index a229bc51..f85869df 100644 --- a/apps/web/src/modules/collection/MainHeader.tsx +++ b/apps/web/src/modules/collection/MainHeader.tsx @@ -63,7 +63,7 @@ const MainHeader = ({
{nameSpace}
diff --git a/apps/web/src/modules/home/Banner/SearchDropdown.tsx b/apps/web/src/modules/home/Banner/SearchDropdown.tsx index 5c37182f..84fd276a 100644 --- a/apps/web/src/modules/home/Banner/SearchDropdown.tsx +++ b/apps/web/src/modules/home/Banner/SearchDropdown.tsx @@ -1,6 +1,7 @@ import React, { useState } from 'react'; import Link from 'next/link'; import classnames from 'classnames'; +import { useRouter } from 'next/router'; import { useTranslation, Trans } from 'next-i18next'; import { AiOutlineRightCircle } from 'react-icons/ai'; import useDropDown from '@common/hooks/useDropDown'; @@ -93,7 +94,6 @@ const LinkItem: React.FC<{ = ({ result, }) => { const { t } = useTranslation(); + const router = useRouter(); const { active } = useDropDown({ totalLength: result.length, onPressEnter: () => { const activeItem = result[active]; - window.open(getShortAnalyzeLink(activeItem), '_blank'); + router.push(getShortAnalyzeLink(activeItem)); }, }); diff --git a/apps/web/src/modules/home/HotFields/ProjectItem.tsx b/apps/web/src/modules/home/HotFields/ProjectItem.tsx index a83f0cbd..b1a3eafb 100644 --- a/apps/web/src/modules/home/HotFields/ProjectItem.tsx +++ b/apps/web/src/modules/home/HotFields/ProjectItem.tsx @@ -17,7 +17,6 @@ const ProjectItem = ({ shortCode, url }) => {