* feat: Move to React.lazy * perf: Remove duplicate babel/runtime * fix: Run yarn-deduplicate * Further attempts to remove rich-markdown-editor from initial chunk * perf: Lazy loading of authenticated routes * perf: Move color picker to async loading fix: Display placeholder when loading rich editor * fix: Cache bust on auto reload
36 lines
1.6 KiB
JavaScript
36 lines
1.6 KiB
JavaScript
// @flow
|
|
import * as React from "react";
|
|
import { Switch, Route } from "react-router-dom";
|
|
import Settings from "scenes/Settings";
|
|
import Details from "scenes/Settings/Details";
|
|
import Events from "scenes/Settings/Events";
|
|
import Export from "scenes/Settings/Export";
|
|
import Groups from "scenes/Settings/Groups";
|
|
import Notifications from "scenes/Settings/Notifications";
|
|
import People from "scenes/Settings/People";
|
|
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";
|
|
|
|
export default function SettingsRoutes() {
|
|
return (
|
|
<Switch>
|
|
<Route exact path="/settings" component={Settings} />
|
|
<Route exact path="/settings/details" component={Details} />
|
|
<Route exact path="/settings/security" component={Security} />
|
|
<Route exact path="/settings/people" component={People} />
|
|
<Route exact path="/settings/people/:filter" component={People} />
|
|
<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/events" component={Events} />
|
|
<Route exact path="/settings/notifications" component={Notifications} />
|
|
<Route exact path="/settings/integrations/slack" component={Slack} />
|
|
<Route exact path="/settings/integrations/zapier" component={Zapier} />
|
|
<Route exact path="/settings/export" component={Export} />
|
|
</Switch>
|
|
);
|
|
}
|