This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { Card , Icon } from 'semantic-ui-react' ;
3
- import moment from 'moment ' ;
3
+ import format from 'date-fns/format ' ;
4
4
5
5
const RowEvent = props => {
6
6
return (
@@ -16,7 +16,7 @@ const RowEvent = props => {
16
16
< Card . Content extra >
17
17
< span className = "card_icons" >
18
18
< Icon name = "clock" />
19
- { moment ( props . time ) . format ( "h:mm A, ddd MMM Do 'YY" ) }
19
+ { format ( props . time , "h:mm A, ddd MMM Do 'YY" ) }
20
20
</ span >
21
21
< span className = "card_icons" >
22
22
< Icon name = "users" />
Original file line number Diff line number Diff line change 44
44
"author" :
" Vinay Puppal <[email protected] > (https://www.vinaypuppal.com/)" ,
45
45
"license" : " BSD" ,
46
46
"dependencies" : {
47
+ "date-fns" : " 1.29.0" ,
47
48
"feathers-rest" : " ^1.8.0" ,
48
49
"isomorphic-unfetch" : " 2.0.0" ,
49
- "moment" : " ^2.19.1" ,
50
50
"next" : " ^4.1.0" ,
51
51
"nprogress" : " ^0.2.0" ,
52
52
"prop-types" : " ^15.5.10" ,
Original file line number Diff line number Diff line change @@ -1777,7 +1777,7 @@ dashdash@^1.12.0:
1777
1777
dependencies :
1778
1778
assert-plus "^1.0.0"
1779
1779
1780
- date-fns@^1.27.2 :
1780
+ date-fns@1.29.0, date-fns@ ^1.27.2 :
1781
1781
version "1.29.0"
1782
1782
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.29.0.tgz#12e609cdcb935127311d04d33334e2960a2a54e6"
1783
1783
@@ -4322,7 +4322,7 @@ modify-values@^1.0.0:
4322
4322
version "1.0.0"
4323
4323
resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.0.tgz#e2b6cdeb9ce19f99317a53722f3dbf5df5eaaab2"
4324
4324
4325
- moment@^2.11.2, moment@^2.19.1 :
4325
+ moment@^2.11.2 :
4326
4326
version "2.19.1"
4327
4327
resolved "https://registry.yarnpkg.com/moment/-/moment-2.19.1.tgz#56da1a2d1cbf01d38b7e1afc31c10bcfa1929167"
4328
4328
You can’t perform that action at this time.
0 commit comments