diff --git a/editor.planx.uk/src/components/EditorNavMenu.tsx b/editor.planx.uk/src/components/EditorNavMenu.tsx index 02e2df0117..f6a27c81e0 100644 --- a/editor.planx.uk/src/components/EditorNavMenu.tsx +++ b/editor.planx.uk/src/components/EditorNavMenu.tsx @@ -139,6 +139,11 @@ function EditorNavMenu() { Icon: PaletteIcon, route: `/${teamSlug}/design`, }, + { + title: "Settings", + Icon: TuneIcon, + route: `/${teamSlug}/general-settings`, + }, ]; const flowLayoutRoutes: Route[] = [ diff --git a/editor.planx.uk/src/routes/team.tsx b/editor.planx.uk/src/routes/team.tsx index 1e252f141f..2a482e6345 100644 --- a/editor.planx.uk/src/routes/team.tsx +++ b/editor.planx.uk/src/routes/team.tsx @@ -1,6 +1,7 @@ import gql from "graphql-tag"; import { compose, lazy, mount, route, withData, withView } from "navi"; import DesignSettings from "pages/FlowEditor/components/Settings/DesignSettings"; +import GeneralSettings from "pages/FlowEditor/components/Settings/GeneralSettings"; import React from "react"; import { client } from "../lib/graphql"; @@ -84,6 +85,14 @@ const routes = compose( view: DesignSettings, })), ), + "/general-settings": compose( + route(async (req) => ({ + title: makeTitle( + [req.params.team, req.params.flow, "settings"].join("/"), + ), + view: GeneralSettings, + })), + ), }), );