From ef78bc6a084f92b4794e987b5832240d85b6479e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 22 Jul 2020 14:05:15 +0200 Subject: refactor app using babel module-resolver --- animism-align/frontend/app.js | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 animism-align/frontend/app.js (limited to 'animism-align/frontend/app.js') diff --git a/animism-align/frontend/app.js b/animism-align/frontend/app.js deleted file mode 100644 index 6239fa6..0000000 --- a/animism-align/frontend/app.js +++ /dev/null @@ -1,42 +0,0 @@ -import React, { Component } from 'react' -import { ConnectedRouter } from 'connected-react-router' -import { Route } from 'react-router' - -import actions from './actions' - -import Header from './views/nav/header.component' -import * as views from './views' - -const viewList = Object.keys(views).map(name => { - const view = views[name] - let path, exact = false - path = '/' + name - return ( - - ) -}) - -export default class App extends Component { - componentDidMount() { - actions.site.loadText() - actions.site.loadPeaks() - actions.annotation.index() - actions.paragraph.index() - actions.media.index() - } - render() { - return ( - -
-
- {viewList} - { - // redirect to index!! - setTimeout(() => this.props.history.push('/align'), 10) - return null - }} /> -
-
- ) - } -} -- cgit v1.2.3-70-g09d2