File tree Expand file tree Collapse file tree 5 files changed +10
-46
lines changed Expand file tree Collapse file tree 5 files changed +10
-46
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,5 @@ yarn-error.log*
2929/.next
3030
3131/lib /data /
32+
33+ .vercel
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { msToString } from '../data-transform'
33import { useTheme } from '@geist-ui/react'
44import { useRouter } from 'next/router'
55import { Configs } from '../utils'
6- import useViewsShow from '../use- views-show '
6+ import useViews from '@unix/ views'
77
88const DateDisplay = ( { date } ) => {
99 const theme = useTheme ( )
1010 const { asPath } = useRouter ( )
11- const [ count , countUpdated ] = useViewsShow ( asPath )
11+ const [ count , countUpdated ] = useViews ( asPath )
1212
1313 const d = useMemo ( ( ) => new Date ( date ) , [ ] )
1414 if ( `${ d } ` === 'Invalid Date' ) return null
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 "@geist-ui/react" : " ^2.1.3" ,
1616 "@geist-ui/react-icons" : " ^1.0.1" ,
1717 "@geist-ui/react-prism" : " ^1.0.0" ,
18+ "@unix/views" : " ^0.1.3" ,
1819 "ms" : " ^2.1.2" ,
1920 "next" : " ^9.5.4" ,
2021 "react" : " ^16.13.1" ,
Original file line number Diff line number Diff line change 15761576 " @types/unist" " *"
15771577 " @types/vfile-message" " *"
15781578
1579+ " @unix/views@^0.1.3 " :
1580+ version "0.1.3"
1581+ resolved "https://registry.yarnpkg.com/@unix/views/-/views-0.1.3.tgz#1cb490169b0804cffa86736d7f028faf8e0b1464"
1582+ integrity sha512-KyonKxxRl0h8VHQvVfSNZdWxvVT+HmodhgkM19OkcnByVpAsKzkIfFx83vqJcNS3zCd4Z4slziYu4rPVJ3X3Vg==
1583+
15791584" @webassemblyjs/ast@1.9.0 " :
15801585 version "1.9.0"
15811586 resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964"
You can’t perform that action at this time.
0 commit comments