File tree Expand file tree Collapse file tree 6 files changed +4097
-3537
lines changed
Expand file tree Collapse file tree 6 files changed +4097
-3537
lines changed Original file line number Diff line number Diff line change 77 "bootstrap" : " ^4.1.3" ,
88 "form-serialize" : " ^0.7.2" ,
99 "normalize.css" : " ^8.0.0" ,
10- "react" : " ^16.4.0 " ,
11- "react-dom" : " ^16.4.0 " ,
12- "react-icons" : " ^2.2.7 " ,
13- "react-modal" : " ^3.4.4 " ,
10+ "react" : " ^16.5.2 " ,
11+ "react-dom" : " ^16.5.2 " ,
12+ "react-icons" : " ^3.1.0 " ,
13+ "react-modal" : " ^3.6.1 " ,
1414 "react-redux" : " ^5.0.7" ,
15- "react-router-dom" : " ^4.2.2 " ,
16- "react-scripts" : " 1.1.5 " ,
15+ "react-router-dom" : " ^4.3.1 " ,
16+ "react-scripts" : " 2.0.3 " ,
1717 "redux" : " ^4.0.0" ,
1818 "redux-logger" : " ^3.0.6" ,
1919 "redux-thunk" : " ^2.3.0" ,
20- "uuid" : " ^3.2.1 "
20+ "uuid" : " ^3.3.2 "
2121 },
2222 "scripts" : {
2323 "start" : " react-scripts start" ,
2424 "build" : " react-scripts build" ,
25- "test" : " react-scripts test --env=jsdom " ,
25+ "test" : " react-scripts test" ,
2626 "eject" : " react-scripts eject"
27- }
28- }
27+ },
28+ "eslintConfig" : {
29+ "extends" : " react-app"
30+ },
31+ "browserslist" : [
32+ " >0.2%" ,
33+ " not dead" ,
34+ " not ie <= 11" ,
35+ " not op_mini all"
36+ ]
37+ }
Original file line number Diff line number Diff line change 11import React , { Component } from "react" ;
22import { connect } from "react-redux" ;
33import Modal from "react-modal" ;
4- import * as FontAwesome from "react-icons/lib/ fa" ;
4+ import * as FontAwesome from "react-icons/fa" ;
55import { castVote , deleteComment } from "./../actions/comments" ;
66import CreateComment from "./CreateComment" ;
77import Vote from "./Vote" ;
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import * as FontAwesome from "react-icons/lib/ fa" ;
2+ import * as FontAwesome from "react-icons/fa" ;
33
4- const DeleteItem = ( { itemId, onDelete} ) => {
4+ const DeleteItem = ( { itemId, onDelete } ) => {
55 const removeItem = itemId => {
66 onDelete ( itemId ) ;
77 } ;
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import * as FontAwesome from "react-icons/lib/ fa" ;
2+ import * as FontAwesome from "react-icons/fa" ;
33
44const EditItem = ( ) => {
55 return < FontAwesome . FaEdit /> ;
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import * as FontAwesome from "react-icons/lib/ fa" ;
2+ import * as FontAwesome from "react-icons/fa" ;
33
4- const Vote = ( { itemId, onVote} ) => {
4+ const Vote = ( { itemId, onVote } ) => {
55 const voteOnItem = async payload => {
66
77 let params = { ...payload , id : itemId } ;
You can’t perform that action at this time.
0 commit comments