Add Organization Edit view

This commit is contained in:
Marliana Lara
2019-02-22 14:53:17 -05:00
parent f1fefbf5f0
commit d2cf2c275b
3 changed files with 304 additions and 24 deletions

View File

@@ -119,14 +119,18 @@ class Organization extends Component {
to="/organizations/:id/details"
exact
/>
<Route
path="/organizations/:id/edit"
render={() => (
<OrganizationEdit
match={match}
/>
)}
/>
{organization && (
<Route
path="/organizations/:id/edit"
render={() => (
<OrganizationEdit
api={api}
match={match}
organization={organization}
/>
)}
/>
)}
{organization && (
<Route
path="/organizations/:id/details"