Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 28fe608

Browse files
committed
fix(header): topic link issue
1 parent fd98c88 commit 28fe608

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/pages/topics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const getStaticProps: GetStaticProps = async (ctx) => {
7171
// ...ssrBaseStates(resp),
7272
route: {
7373
communityPath: community.raw,
74-
mainPath: ROUTE.HOT,
74+
mainPath: ROUTE.TOPICS,
7575
subPath: thread === THREAD.POST ? '' : thread,
7676
thread,
7777
},

src/widgets/Navigator/MainEntries/DesktopView.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ const DesktopView: FC<TProps> = ({ type }) => {
2020

2121
return (
2222
<Wrapper type={type}>
23-
<Link href={`/${ROUTE.HOT}`} passHref>
24-
<SiteLink active={mainPath === ROUTE.HOT} testid="header-explore-link">
23+
<Link href={`/${ROUTE.TOPICS}`} passHref>
24+
<SiteLink
25+
active={mainPath === ROUTE.TOPICS}
26+
testid="header-explore-link"
27+
>
2528
讨论
2629
</SiteLink>
2730
</Link>

utils/constant/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const NON_COMMUNITY_ROUTE = {
77
PLAZA: 'plaza',
88
GALLERY: 'gallery',
99
TRENDING: 'trending',
10-
HOT: 'hot',
10+
TOPICS: 'topics',
1111
SPONSOR: 'sponsor',
1212
FRIENDS: 'friends',
1313
SUPPORT_US: 'support-us',

0 commit comments

Comments
 (0)