diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 22:02:19 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 22:02:19 +0200 |
| commit | 5c018b3f2c2c47371546d210240836057d1ea5bb (patch) | |
| tree | 3e802344413007612b7073548756d32aa77074f4 /app/client/modules/pix2pix/index.js | |
| parent | 2b4a6e53102b568c691c72998ddece80a3b3d515 (diff) | |
set menu dropdown from url. make pix2pix views
Diffstat (limited to 'app/client/modules/pix2pix/index.js')
| -rw-r--r-- | app/client/modules/pix2pix/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/client/modules/pix2pix/index.js b/app/client/modules/pix2pix/index.js index f60cf36..ffe5f6b 100644 --- a/app/client/modules/pix2pix/index.js +++ b/app/client/modules/pix2pix/index.js @@ -1,11 +1,16 @@ import { h, Component } from 'preact' import { Route, Link } from 'react-router-dom' -import Pix2PixLive from './pix2pix.live' +import Pix2PixNew from './views/pix2pix.new' +import Pix2PixShow from './views/pix2pix.show' +import Pix2PixLive from './views/pix2pix.live' function router () { return ( <section> + <Route exact path='/pix2pix/new/' component={Pix2PixNew} /> + <Route exact path='/pix2pix/datasets/' component={Pix2PixShow} /> + <Route exact path='/pix2pix/datasets/:id/' component={Pix2PixShow} /> <Route exact path='/pix2pix/live/' component={Pix2PixLive} /> </section> ) |
