summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/venue/venue.container.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-30 18:48:54 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-30 18:48:54 +0200
commit9dba744407f61a56efb8e63bbfa50ade6e847acf (patch)
treee3953fcceafa010bdc7a4df353c74fe571c9c13d /animism-align/frontend/app/views/venue/venue.container.js
parent58b47df64f1ec0444a45892c1db2ca195ec93deb (diff)
update episodes table form. add venues table and CRUD
Diffstat (limited to 'animism-align/frontend/app/views/venue/venue.container.js')
-rw-r--r--animism-align/frontend/app/views/venue/venue.container.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/venue/venue.container.js b/animism-align/frontend/app/views/venue/venue.container.js
new file mode 100644
index 0000000..eaca694
--- /dev/null
+++ b/animism-align/frontend/app/views/venue/venue.container.js
@@ -0,0 +1,26 @@
+import React, { Component } from 'react'
+import { Route } from 'react-router-dom'
+import { connect } from 'react-redux'
+
+import './venue.css'
+
+import VenueIndex from './containers/venue.index'
+import VenueNew from './containers/venue.new'
+import VenueEdit from './containers/venue.edit'
+
+class Container extends Component {
+ render() {
+ return (
+ <div className='venueContainer'>
+ <Route exact path='/venue/:id/edit/' component={VenueEdit} />
+ <Route exact path='/venue/new/' component={VenueNew} />
+ <Route exact path='/venue/' component={VenueIndex} />
+ </div>
+ )
+ }
+}
+const mapStateToProps = state => ({
+ venue: state.venue,
+})
+
+export default connect(mapStateToProps)(Container)