summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/index/index.container.js
blob: c6cb819faf5c16736ad10c07b749aab48203a675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React, { Component } from 'react'
import { Route } from 'react-router-dom'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'

import './index.css'

import actions from '../../actions'
import { Header } from '../../common'
// import * as uploadActions from './upload.actions'

import GraphIndex from './containers/graph.index'
import GraphNew from './containers/graph.new'
import GraphEdit from './containers/graph.edit'

class Container extends Component {
  componentDidMount() {
    actions.site.setSiteTitle("swimmer")
  }
  render() {
    return (
      <div>
        <Header />
        <div className='body'>
          <div className='index'>
            <Route exact path='/index/new' component={GraphNew} />
            <Route exact path='/index/:id/edit' component={GraphEdit} />
            <Route exact path='/index' component={GraphIndex} />
          </div>
        </div>
      </div>
    )
  }
}

export default Container