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 (
- +

{name}

{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 = ({

{ if (compareIds.length > 1) { - await router.push(getShortCompareLink(compareIds)); + await window.open(getShortCompareLink(compareIds), '_blank'); } // setSelect(false); }} diff --git a/apps/web/src/modules/explore/CollectionCard.tsx b/apps/web/src/modules/explore/CollectionCard.tsx index 0e571e7a..2303a197 100644 --- a/apps/web/src/modules/explore/CollectionCard.tsx +++ b/apps/web/src/modules/explore/CollectionCard.tsx @@ -66,7 +66,6 @@ const CollectionCard = (props: { collection: Collection }) => { diff --git a/apps/web/src/modules/explore/CollectionFullCard.tsx b/apps/web/src/modules/explore/CollectionFullCard.tsx index 6ed002f9..8350f424 100644 --- a/apps/web/src/modules/explore/CollectionFullCard.tsx +++ b/apps/web/src/modules/explore/CollectionFullCard.tsx @@ -74,7 +74,6 @@ const CollectionFullCard = (props: { collection: Collection }) => { diff --git a/apps/web/src/modules/explore/RepoCard.tsx b/apps/web/src/modules/explore/RepoCard.tsx index 7543ff12..f5443543 100644 --- a/apps/web/src/modules/explore/RepoCard.tsx +++ b/apps/web/src/modules/explore/RepoCard.tsx @@ -54,9 +54,7 @@ const RepoCard = (props: { {compareMode ? ( repo ) : ( - - {repo} - + {repo} )}

{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 }) => {
diff --git a/apps/web/src/modules/home/Trending/ListPanel.tsx b/apps/web/src/modules/home/Trending/ListPanel.tsx index a5f70eb5..467b279d 100644 --- a/apps/web/src/modules/home/Trending/ListPanel.tsx +++ b/apps/web/src/modules/home/Trending/ListPanel.tsx @@ -30,7 +30,6 @@ const ListPanel = (props: { key={item.label} href={getShortAnalyzeLink(item.shortCode)} className="grid cursor-pointer grid-cols-6 gap-2 border-b py-3 last:border-0" - target="_blank" >