This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed
containers/tool/Drawer/styles/content Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export const Wrapper = styled.div`
6
6
width: 100%;
7
7
/* NOTE: those property must exist otherwise custom scroller will not work*/
8
8
height: 100%;
9
- overflow-y: scroll;
10
9
11
10
/* 30px is the modeLine height */
12
11
${ css . media . mobile `
File renamed without changes.
Original file line number Diff line number Diff line change 5
5
import { FC , memo } from 'react'
6
6
7
7
import { buildLog } from '@/utils/logger'
8
+ import { nilOrEmpty } from '@/utils/validator'
8
9
import { useAccount } from '@/hooks'
9
10
10
11
import { ReadedLabel } from './styles'
@@ -23,7 +24,7 @@ export type TProps = {
23
24
const ArticleReadLabel : FC < TProps > = ( { entry, top = 24 , left = - 30 } ) => {
24
25
const accountInfo = useAccount ( )
25
26
26
- if ( ! accountInfo || entry . pin ) return null
27
+ if ( nilOrEmpty ( accountInfo ) || entry . pin ) return null
27
28
28
29
const { markViewed } = accountInfo . customization
29
30
const { viewerHasViewed } = entry
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const DesktopView: FC<TProps> = ({ type }) => {
22
22
< Wrapper type = { type } >
23
23
< Link href = { `/${ ROUTE . HOT } ` } passHref >
24
24
< SiteLink active = { mainPath === ROUTE . HOT } testid = "header-explore-link" >
25
- 热门讨论
25
+ 讨论
26
26
</ SiteLink >
27
27
</ Link >
28
28
< DotDivider space = { splitMargin } />
You can’t perform that action at this time.
0 commit comments