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

Commit 4c9cdb6

Browse files
authored
chore(page-naming): topic naming (#1260)
* chore(naming): hot -> topics & readlabel crash * style(drawer): rm scroll style on windows
1 parent 35d7fc8 commit 4c9cdb6

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/containers/tool/Drawer/styles/content/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const Wrapper = styled.div`
66
width: 100%;
77
/* NOTE: those property must exist otherwise custom scroller will not work*/
88
height: 100%;
9-
overflow-y: scroll;
109
1110
/* 30px is the modeLine height */
1211
${css.media.mobile`
File renamed without changes.

src/widgets/ArticleReadLabel/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { FC, memo } from 'react'
66

77
import { buildLog } from '@/utils/logger'
8+
import { nilOrEmpty } from '@/utils/validator'
89
import { useAccount } from '@/hooks'
910

1011
import { ReadedLabel } from './styles'
@@ -23,7 +24,7 @@ export type TProps = {
2324
const ArticleReadLabel: FC<TProps> = ({ entry, top = 24, left = -30 }) => {
2425
const accountInfo = useAccount()
2526

26-
if (!accountInfo || entry.pin) return null
27+
if (nilOrEmpty(accountInfo) || entry.pin) return null
2728

2829
const { markViewed } = accountInfo.customization
2930
const { viewerHasViewed } = entry

src/widgets/Navigator/MainEntries/DesktopView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const DesktopView: FC<TProps> = ({ type }) => {
2222
<Wrapper type={type}>
2323
<Link href={`/${ROUTE.HOT}`} passHref>
2424
<SiteLink active={mainPath === ROUTE.HOT} testid="header-explore-link">
25-
热门讨论
25+
讨论
2626
</SiteLink>
2727
</Link>
2828
<DotDivider space={splitMargin} />

0 commit comments

Comments
 (0)