diff --git a/src/routes/New/New.tsx b/src/routes/New/New.tsx index 1c43900a..45b5c53c 100644 --- a/src/routes/New/New.tsx +++ b/src/routes/New/New.tsx @@ -2,10 +2,7 @@ import React from 'react' import WeaponGrid from '../../components/WeaponGrid/WeaponGrid' const New = () => ( -
-

New party

- -
+ ) export default New \ No newline at end of file diff --git a/src/routes/Parties/Parties.tsx b/src/routes/Parties/Parties.tsx index d9fbd1dc..eadd06ec 100644 --- a/src/routes/Parties/Parties.tsx +++ b/src/routes/Parties/Parties.tsx @@ -13,6 +13,7 @@ class Parties extends React.Component { parties: [] } } + getParties() { fetch('http://localhost:3001/parties/') .then(response => response.json()) diff --git a/src/routes/Party/Party.tsx b/src/routes/Party/Party.tsx index 4070ba04..05c0ad7e 100644 --- a/src/routes/Party/Party.tsx +++ b/src/routes/Party/Party.tsx @@ -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 (
-

A specific party with hash: {hash}

+

{hash}

+
) }