2019-12-23 12:16:33 +00:00
|
|
|
import React from "react";
|
2020-03-11 13:59:46 +00:00
|
|
|
import { Switch, useRouteMatch, useLocation } from "react-router-dom";
|
2019-12-23 12:16:33 +00:00
|
|
|
import PageWrapper from "pages/common/PageWrapper";
|
|
|
|
|
import Settings from "./settings";
|
|
|
|
|
import DefaultOrgPage from "./defaultOrgPage";
|
2020-03-11 13:59:46 +00:00
|
|
|
import AppRoute from "pages/common/AppRoute";
|
2019-12-23 12:16:33 +00:00
|
|
|
export const Organization = () => {
|
|
|
|
|
const { path } = useRouteMatch();
|
|
|
|
|
const location = useLocation();
|
|
|
|
|
return (
|
|
|
|
|
<PageWrapper displayName="Organization Settings">
|
2020-03-06 09:33:20 +00:00
|
|
|
<Switch location={location}>
|
2020-03-11 13:59:46 +00:00
|
|
|
<AppRoute
|
|
|
|
|
exact
|
2020-06-17 10:19:56 +00:00
|
|
|
path={`${path}/:orgId/settings`}
|
2020-03-11 13:59:46 +00:00
|
|
|
component={Settings}
|
|
|
|
|
name={"Settings"}
|
|
|
|
|
/>
|
|
|
|
|
<AppRoute component={DefaultOrgPage} name={"DefaultOrgPage"} />
|
2020-03-06 09:33:20 +00:00
|
|
|
</Switch>
|
2019-12-23 12:16:33 +00:00
|
|
|
</PageWrapper>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Organization;
|