From ec4aff68ef544767d6e66bbf76b22df002ed0a0c Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 14 Sep 2020 18:30:14 -0700 Subject: [PATCH] Update main routes --- src/routes/New/New.tsx | 5 +---- src/routes/Parties/Parties.tsx | 1 + src/routes/Party/Party.tsx | 5 ++++- 3 files changed, 6 insertions(+), 5 deletions(-) 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}

+
) }