Skip to content

Commit

Permalink
chore: expose "Idox Nexus" Send destination on production for testing (
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Aug 16, 2024
1 parent 110d062 commit 80dd409
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions editor.planx.uk/src/@planx/components/Send/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const SendComponent: React.FC<Props> = (props) => {
value: Destination.Uniform,
label: "Uniform",
},
{
value: Destination.Idox,
label: "Idox Nexus (TESTING ONLY)",
},
{
value: Destination.Email,
label: "Email to planning office",
Expand All @@ -61,14 +65,6 @@ const SendComponent: React.FC<Props> = (props) => {
},
];

// Show Nexus option on staging only
if (process.env.REACT_APP_ENV !== "production") {
options.push({
value: Destination.Idox,
label: "Idox Nexus (testing only)",
});
}

const changeCheckbox =
(value: Destination) =>
(_checked: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => {
Expand Down

0 comments on commit 80dd409

Please sign in to comment.