File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export interface DateDisplayProps {
12
12
const DateDisplay : React . FC < DateDisplayProps > = ( { date } ) => {
13
13
const theme = useTheme ( )
14
14
const { asPath } = useRouter ( )
15
- const [ count , countUpdated ] = useViews ( asPath )
15
+ const [ count , countUpdated ] = useViews ( asPath , { disabled : ! Configs . enableViews } )
16
16
17
17
const d = useMemo ( ( ) => new Date ( date ) , [ ] )
18
18
if ( `${ d } ` === 'Invalid Date' ) return null
Original file line number Diff line number Diff line change 15
15
"@geist-ui/react" : " ^2.2.0" ,
16
16
"@geist-ui/react-icons" : " ^1.0.1" ,
17
17
"@geist-ui/react-prism" : " ^1.0.1" ,
18
- "@unix/views" : " ^0.1.3 " ,
18
+ "@unix/views" : " ^0.2.0 " ,
19
19
"ms" : " ^2.1.3" ,
20
20
"next" : " ^11.1.0" ,
21
21
"react" : " ^17.0.2" ,
Original file line number Diff line number Diff line change 710
710
" @types/unist" " *"
711
711
" @types/vfile-message" " *"
712
712
713
- " @unix/views@^0.1.3 " :
714
- version "0.1.3 "
715
- resolved "https://registry.yarnpkg.com/@unix/views/-/views-0.1.3 .tgz#1cb490169b0804cffa86736d7f028faf8e0b1464 "
716
- integrity sha512-KyonKxxRl0h8VHQvVfSNZdWxvVT+HmodhgkM19OkcnByVpAsKzkIfFx83vqJcNS3zCd4Z4slziYu4rPVJ3X3Vg ==
713
+ " @unix/views@^0.2.0 " :
714
+ version "0.2.0 "
715
+ resolved "https://registry.yarnpkg.com/@unix/views/-/views-0.2.0 .tgz#bad6185c5eae283967095325afdba94842e8c176 "
716
+ integrity sha512-Tt1EmyYfOwsnJ9GAy0Oz5SHi6Zv8/Hymgij29ASmXMlBFDpEaCaKITmoGSS7HktUUAxBBIaq1eRvva7AX0IMlQ ==
717
717
718
718
anser@1.4.9 :
719
719
version "1.4.9"
You can’t perform that action at this time.
0 commit comments