Skip to content

Commit

Permalink
add warning page to Draft view
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Dec 19, 2024
1 parent e1349ad commit bb506d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion editor.planx.uk/src/routes/views/draft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { publicClient } from "lib/graphql";
import { NaviRequest, NotFoundError } from "navi";
import { useStore } from "pages/FlowEditor/lib/store";
import PublicLayout from "pages/layout/PublicLayout";
import { TestWarningPage } from "pages/Preview/TestWarningPage";
import React from "react";
import { View } from "react-navi";
import { Flow, GlobalSettings } from "types";
Expand Down Expand Up @@ -39,7 +40,9 @@ export const draftView = async (req: NaviRequest) => {

return (
<PublicLayout>
<View />
<TestWarningPage>
<View />
</TestWarningPage>
</PublicLayout>
);
};
Expand Down

0 comments on commit bb506d9

Please sign in to comment.