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 {
1212const DateDisplay : React . FC < DateDisplayProps > = ( { date } ) => {
1313 const theme = useTheme ( )
1414 const { asPath } = useRouter ( )
15- const [ count , countUpdated ] = useViews ( asPath )
15+ const [ count , countUpdated ] = useViews ( asPath , { disabled : ! Configs . enableViews } )
1616
1717 const d = useMemo ( ( ) => new Date ( date ) , [ ] )
1818 if ( `${ d } ` === 'Invalid Date' ) return null
Original file line number Diff line number Diff line change 1515 "@geist-ui/react" : " ^2.2.0" ,
1616 "@geist-ui/react-icons" : " ^1.0.1" ,
1717 "@geist-ui/react-prism" : " ^1.0.1" ,
18- "@unix/views" : " ^0.1.3 " ,
18+ "@unix/views" : " ^0.2.0 " ,
1919 "ms" : " ^2.1.3" ,
2020 "next" : " ^11.1.0" ,
2121 "react" : " ^17.0.2" ,
Original file line number Diff line number Diff line change 710710 " @types/unist" " *"
711711 " @types/vfile-message" " *"
712712
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 ==
717717
718718anser@1.4.9 :
719719 version "1.4.9"
You can’t perform that action at this time.
0 commit comments