File tree 5 files changed +10
-46
lines changed
5 files changed +10
-46
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,5 @@ yarn-error.log*
29
29
/.next
30
30
31
31
/lib /data /
32
+
33
+ .vercel
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { msToString } from '../data-transform'
3
3
import { useTheme } from '@geist-ui/react'
4
4
import { useRouter } from 'next/router'
5
5
import { Configs } from '../utils'
6
- import useViewsShow from '../use- views-show '
6
+ import useViews from '@unix/ views'
7
7
8
8
const DateDisplay = ( { date } ) => {
9
9
const theme = useTheme ( )
10
10
const { asPath } = useRouter ( )
11
- const [ count , countUpdated ] = useViewsShow ( asPath )
11
+ const [ count , countUpdated ] = useViews ( asPath )
12
12
13
13
const d = useMemo ( ( ) => new Date ( date ) , [ ] )
14
14
if ( `${ d } ` === 'Invalid Date' ) return null
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
"@geist-ui/react" : " ^2.1.3" ,
16
16
"@geist-ui/react-icons" : " ^1.0.1" ,
17
17
"@geist-ui/react-prism" : " ^1.0.0" ,
18
+ "@unix/views" : " ^0.1.3" ,
18
19
"ms" : " ^2.1.2" ,
19
20
"next" : " ^9.5.4" ,
20
21
"react" : " ^16.13.1" ,
Original file line number Diff line number Diff line change 1576
1576
" @types/unist" " *"
1577
1577
" @types/vfile-message" " *"
1578
1578
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
+
1579
1584
" @webassemblyjs/ast@1.9.0 " :
1580
1585
version "1.9.0"
1581
1586
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