File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 20
20
"publish" : true ,
21
21
"createdAt" : 1646350534135 ,
22
22
"id" : 7
23
+ },
24
+ {
25
+ "title" : " react" ,
26
+ "body" : " react" ,
27
+ "publish" : false ,
28
+ "createdAt" : 1647211176299 ,
29
+ "id" : 8
30
+ },
31
+ {
32
+ "title" : " recoiljs" ,
33
+ "body" : " recoiljs" ,
34
+ "publish" : false ,
35
+ "createdAt" : 1647211385146 ,
36
+ "id" : 9
37
+ },
38
+ {
39
+ "title" : " test" ,
40
+ "body" : " test" ,
41
+ "publish" : false ,
42
+ "createdAt" : 1647211425309 ,
43
+ "id" : 10
23
44
}
24
45
]
25
46
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const BlogForm = ({ editing }) => {
58
58
publish,
59
59
createdAt : Date . now ( )
60
60
} ) . then ( ( ) => {
61
- history . push ( '/blogs ' ) ;
61
+ history . push ( '/admin ' ) ;
62
62
} )
63
63
}
64
64
} ;
Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
2
import { useState , useEffect } from 'react' ;
3
3
import Card from '../components/Card' ;
4
- import { Link } from 'react-router-dom' ;
5
4
import { useHistory } from 'react-router' ;
6
5
import LoadingSpinner from '../components/LoadingSpinner' ;
7
6
import { bool } from 'prop-types' ;
You can’t perform that action at this time.
0 commit comments