summaryrefslogtreecommitdiff
path: root/app/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-25 20:04:34 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-25 20:04:34 +0200
commit28f4bd59314df8162548a1100b280bd256436eaa (patch)
tree0f86102a076bfc1082b04f81aa7986bcba897a9a /app/client
parente484781d56a04e37c93090c52ce4e3f2be404a33 (diff)
more static endpoints
Diffstat (limited to 'app/client')
-rw-r--r--app/client/dashboard/gallery.component.js2
-rw-r--r--app/client/index.jsx6
2 files changed, 4 insertions, 4 deletions
diff --git a/app/client/dashboard/gallery.component.js b/app/client/dashboard/gallery.component.js
index 0e1f44d..0b13cfe 100644
--- a/app/client/dashboard/gallery.component.js
+++ b/app/client/dashboard/gallery.component.js
@@ -8,7 +8,6 @@ class Gallery extends Component {
}
render(){
const { title, images } = this.props
- images.push(images[0])
const imageList = images.map(image => {
return (
<div>
@@ -16,6 +15,7 @@ class Gallery extends Component {
</div>
)
})
+ imageList.push(imageList[0])
return (
<div class='gallery'>
{imageList}
diff --git a/app/client/index.jsx b/app/client/index.jsx
index a084306..45a1b94 100644
--- a/app/client/index.jsx
+++ b/app/client/index.jsx
@@ -14,9 +14,9 @@ const app = (
<Provider store={store}>
<BrowserRouter>
<div>
- <Route path='/' component={Dashboard} />
- <Route path='/live/' component={LivePix2Pix} />
- <Route path='/dashboard/' component={Dashboard} />
+ <Route exact path='/' component={Dashboard} />
+ <Route exact path='/live/' component={LivePix2Pix} />
+ <Route exact path='/dashboard/' component={Dashboard} />
<Header />
</div>
</BrowserRouter>