2020-08-15 00:23:58 +00:00
|
|
|
// @flow
|
|
|
|
import * as React from "react";
|
2021-05-20 04:36:10 +00:00
|
|
|
import { Switch, Redirect } from "react-router-dom";
|
2020-08-15 00:23:58 +00:00
|
|
|
import Details from "scenes/Settings/Details";
|
2021-10-05 05:00:47 +00:00
|
|
|
import Features from "scenes/Settings/Features";
|
2020-08-15 00:23:58 +00:00
|
|
|
import Groups from "scenes/Settings/Groups";
|
2020-12-27 07:12:22 +00:00
|
|
|
import ImportExport from "scenes/Settings/ImportExport";
|
2020-08-15 00:23:58 +00:00
|
|
|
import Notifications from "scenes/Settings/Notifications";
|
|
|
|
import People from "scenes/Settings/People";
|
2021-04-28 01:46:58 +00:00
|
|
|
import Profile from "scenes/Settings/Profile";
|
2020-08-15 00:23:58 +00:00
|
|
|
import Security from "scenes/Settings/Security";
|
|
|
|
import Shares from "scenes/Settings/Shares";
|
|
|
|
import Slack from "scenes/Settings/Slack";
|
|
|
|
import Tokens from "scenes/Settings/Tokens";
|
|
|
|
import Zapier from "scenes/Settings/Zapier";
|
2021-01-23 07:02:12 +00:00
|
|
|
import Route from "components/ProfiledRoute";
|
2021-10-15 04:37:04 +00:00
|
|
|
import env from "env";
|
|
|
|
|
|
|
|
const isHosted = env.DEPLOYMENT === "hosted";
|
2020-08-15 00:23:58 +00:00
|
|
|
|
|
|
|
export default function SettingsRoutes() {
|
|
|
|
return (
|
|
|
|
<Switch>
|
2021-04-28 01:46:58 +00:00
|
|
|
<Route exact path="/settings" component={Profile} />
|
2020-08-15 00:23:58 +00:00
|
|
|
<Route exact path="/settings/details" component={Details} />
|
|
|
|
<Route exact path="/settings/security" component={Security} />
|
2021-05-20 04:36:10 +00:00
|
|
|
<Route exact path="/settings/members" component={People} />
|
2021-10-05 05:00:47 +00:00
|
|
|
<Route exact path="/settings/features" component={Features} />
|
2020-08-15 00:23:58 +00:00
|
|
|
<Route exact path="/settings/groups" component={Groups} />
|
|
|
|
<Route exact path="/settings/shares" component={Shares} />
|
|
|
|
<Route exact path="/settings/tokens" component={Tokens} />
|
|
|
|
<Route exact path="/settings/notifications" component={Notifications} />
|
2021-10-15 04:49:35 +00:00
|
|
|
<Route exact path="/settings/integrations/slack" component={Slack} />
|
2021-10-15 04:37:04 +00:00
|
|
|
{isHosted && (
|
|
|
|
<Route exact path="/settings/integrations/zapier" component={Zapier} />
|
|
|
|
)}
|
2020-12-22 05:03:11 +00:00
|
|
|
<Route exact path="/settings/import-export" component={ImportExport} />
|
2021-05-20 04:36:10 +00:00
|
|
|
<Redirect from="/settings/people" to="/settings/members" />
|
2020-08-15 00:23:58 +00:00
|
|
|
</Switch>
|
|
|
|
);
|
|
|
|
}
|