From 0890fdd951d021308550a0db2e7b6f2593512957 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 May 2020 17:27:04 +0200 Subject: initial site copied in --- frontend/app.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 frontend/app.js (limited to 'frontend/app.js') diff --git a/frontend/app.js b/frontend/app.js new file mode 100644 index 0000000..38a50c6 --- /dev/null +++ b/frontend/app.js @@ -0,0 +1,41 @@ +import React, { Component } from 'react' +import { ConnectedRouter } from 'connected-react-router' +import { Route } from 'react-router' + +import { Header } from './common' + +import actions from './actions' + +import * as views from './views' + +const viewList = Object.keys(views).map(name => { + const view = views[name] + return ( + + ) +}) + +export default class App extends Component { + componentDidMount() { + // actions.modelzoo.index() + } + render() { + return ( + +
+
+
+
+ {viewList} + { + // redirect to search!! + setTimeout(() => this.props.history.push('/search/'), 10) + return null + }} /> +
+
+
+
+ ) + } +} -- cgit v1.2.3-70-g09d2