Update main routes
This commit is contained in:
parent
d723b0bc1d
commit
ec4aff68ef
3 changed files with 6 additions and 5 deletions
|
|
@ -2,10 +2,7 @@ import React from 'react'
|
|||
import WeaponGrid from '../../components/WeaponGrid/WeaponGrid'
|
||||
|
||||
const New = () => (
|
||||
<div>
|
||||
<h1>New party</h1>
|
||||
<WeaponGrid />
|
||||
</div>
|
||||
<WeaponGrid key="weapon_grid"/>
|
||||
)
|
||||
|
||||
export default New
|
||||
|
|
@ -13,6 +13,7 @@ class Parties extends React.Component {
|
|||
parties: []
|
||||
}
|
||||
}
|
||||
|
||||
getParties() {
|
||||
fetch('http://localhost:3001/parties/')
|
||||
.then(response => response.json())
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
import React from 'react'
|
||||
import { withRouter } from 'react-router'
|
||||
|
||||
import WeaponGrid from '../../components/WeaponGrid/WeaponGrid'
|
||||
|
||||
class Party extends React.Component {
|
||||
render() {
|
||||
var hash = this.props.match.params.hash
|
||||
return (
|
||||
<div>
|
||||
<h1>A specific party with hash: {hash}</h1>
|
||||
<h1>{hash}</h1>
|
||||
<WeaponGrid />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue