diff --git a/public/background/1.jpg b/public/background/1.jpg deleted file mode 100644 index 7e569fe..0000000 Binary files a/public/background/1.jpg and /dev/null differ diff --git a/public/background/2.jpg b/public/background/2.jpg deleted file mode 100644 index 246ac41..0000000 Binary files a/public/background/2.jpg and /dev/null differ diff --git a/public/background/3.jpg b/public/background/3.jpg deleted file mode 100644 index 5a68ffe..0000000 Binary files a/public/background/3.jpg and /dev/null differ diff --git a/public/background/4.jpg b/public/background/4.jpg deleted file mode 100644 index 6bde5d3..0000000 Binary files a/public/background/4.jpg and /dev/null differ diff --git a/public/background/home.jpg b/public/background/home.jpg new file mode 100644 index 0000000..7ffaec1 Binary files /dev/null and b/public/background/home.jpg differ diff --git a/public/background/map.jpg b/public/background/map.jpg new file mode 100644 index 0000000..0329ae9 Binary files /dev/null and b/public/background/map.jpg differ diff --git a/public/background/vegetables.jpg b/public/background/vegetables.jpg new file mode 100644 index 0000000..e9a82f4 Binary files /dev/null and b/public/background/vegetables.jpg differ diff --git a/src/Routes/Home.js b/src/Routes/Home.js index eef8182..934e599 100644 --- a/src/Routes/Home.js +++ b/src/Routes/Home.js @@ -9,7 +9,7 @@ import '../css/Home.css'; export default class RouterHome extends React.Component { render() { - // this.props.changeBackground() + this.props.changeBackground('home') return ( diff --git a/src/Routes/Map.js b/src/Routes/Map.js index 72783a4..61a88a6 100644 --- a/src/Routes/Map.js +++ b/src/Routes/Map.js @@ -31,6 +31,7 @@ export default class RouterMap extends React.Component { this.selectVegetable = this.selectVegetable.bind(this); this.getVegetablesTypes(); + this.props.changeBackground('map') } getVegetablesTypes() { diff --git a/src/Routes/Vegetable.js b/src/Routes/Vegetable.js index 531d413..6b6b894 100644 --- a/src/Routes/Vegetable.js +++ b/src/Routes/Vegetable.js @@ -49,6 +49,7 @@ export default class RouterVegetable extends React.Component { this.onExited = this.onExited.bind(this); this.getItem(); + this.props.changeBackground('vegetables') } onExiting() { diff --git a/src/Routes/Vegetables.js b/src/Routes/Vegetables.js index cd0c35a..b5a557c 100644 --- a/src/Routes/Vegetables.js +++ b/src/Routes/Vegetables.js @@ -26,6 +26,7 @@ export default class RouterVegetables extends React.Component { this.selectVegetable = this.selectVegetable.bind(this); this.getItem(); + this.props.changeBackground('vegetables') } getItem() {