File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed
Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
2-
2+ let webpack = require ( 'webpack' ) ;
33let path = require ( 'path' ) ;
44let srcPath = path . join ( __dirname , '/../src/' ) ;
55
@@ -22,7 +22,7 @@ module.exports = {
2222 ] ,
2323 loaders : [
2424 {
25- test : / \. ( p n g | j p g | g i f | w o f f | w o f f 2 | c s s | s a s s | s c s s | l e s s | s t y l ) $ / ,
25+ test : / \. ( p n g | j p g | g i f | w o f f | w o f f 2 | c s s | s a s s | s c s s | l e s s | s t y l | s v g | e o t | t t f ) $ / ,
2626 loader : 'null-loader'
2727 } ,
2828 {
@@ -53,6 +53,10 @@ module.exports = {
5353 plugins : [
5454 new BowerWebpackPlugin ( {
5555 searchResolveModulesDirectories : false
56+ } ) ,
57+ new webpack . ProvidePlugin ( {
58+ $ : "jquery" ,
59+ jQuery : "jquery"
5660 } )
5761 ]
5862} ;
Original file line number Diff line number Diff line change 33export function addSchool ( school ) {
44 return {
55 school :school ,
6- type :" school:addSchool"
6+ type :' school:addSchool'
77 } ;
88 }
99
1010export function deleteSchool ( school ) {
1111 return {
1212 school :school ,
13- type :" school:deleteSchool"
13+ type :' school:deleteSchool'
1414 } ;
1515 }
1616
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class AppComponent extends Component {
1616 render ( ) {
1717 const { schools, actions} = this . props ;
1818 return (
19- < SchoolsList schools = { schools } actions = { actions } />
19+ < SchoolsList className = "index" schools = { schools } actions = { actions } />
2020 ) ;
2121 }
2222}
Original file line number Diff line number Diff line change 11const initialState = [
2- { name : " Lovedale" , tagline : " A wonderful school" } ,
3- { name : " Bishop" , tagline : " An awesome school" } ,
4- { name : " Daffodils" , tagline : " An excellent school" } ]
2+ { name : ' Lovedale' , tagline : ' A wonderful school' } ,
3+ { name : ' Bishop' , tagline : ' An awesome school' } ,
4+ { name : ' Daffodils' , tagline : ' An excellent school' } ]
55
66
77export default function shools ( state = initialState , action ) {
88 switch ( action . type ) {
9- case " school:addSchool" :
9+ case ' school:addSchool' :
1010 return [
1111 {
1212 name : action . school . name ,
@@ -16,7 +16,7 @@ export default function shools(state = initialState, action) {
1616 ]
1717
1818
19- case " school:deleteSchool" :
19+ case ' school:deleteSchool' :
2020 return state . filter ( school =>
2121 school . name !== action . school . name
2222 )
You can’t perform that action at this time.
0 commit comments