Skip to content

Commit

Permalink
feat: Wire up alternate DesignSettings path
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jul 4, 2024
1 parent 5c4a3cf commit 9ce2932
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions editor.planx.uk/src/routes/team.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import { FlowGraph } from "@opensystemslab/planx-core/types";
import axios from "axios";
import gql from "graphql-tag";
import {
compose,
lazy,
mount,
NotFoundError,
route,
withData,
withView,
} from "navi";
import { compose, lazy, mount, route, withData, withView } from "navi";
import DesignSettings from "pages/FlowEditor/components/Settings/DesignSettings";
import React from "react";

import { client } from "../lib/graphql";
Expand Down Expand Up @@ -85,6 +76,14 @@ const routes = compose(
}),

"/members": lazy(() => import("./teamMembers")),
"/design": compose(
route(async (req) => ({
title: makeTitle(
[req.params.team, req.params.flow, "design"].join("/"),
),
view: DesignSettings,
})),
),
}),
);

Expand Down

0 comments on commit 9ce2932

Please sign in to comment.