Add Organization Details view and test

This commit is contained in:
Marliana Lara
2019-02-01 09:16:49 -05:00
parent a2007b8e0c
commit 8846e1427e
7 changed files with 285 additions and 25 deletions

View File

@@ -127,16 +127,18 @@ class Organization extends Component {
/>
)}
/>
<Route
path="/organizations/:id/details"
render={() => (
<OrganizationDetail
organization={organization}
match={match}
location={location}
/>
)}
/>
{organization && (
<Route
path="/organizations/:id/details"
render={() => (
<OrganizationDetail
api={api}
match={match}
organization={organization}
/>
)}
/>
)}
<Route
path="/organizations/:id/access"
render={() => <CardBody><h1><Trans>Access</Trans></h1></CardBody>}