From 576b62c16b1b4c5a82964a8abf7d4967a1e38771 Mon Sep 17 00:00:00 2001 From: dakota002 Date: Wed, 16 Oct 2024 10:17:53 -0400 Subject: [PATCH] Adds a placeholder mission page and link --- app/routes/missions.km3net.mdx | 13 +++++++++++++ app/routes/missions.tsx | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 app/routes/missions.km3net.mdx diff --git a/app/routes/missions.km3net.mdx b/app/routes/missions.km3net.mdx new file mode 100644 index 000000000..02f8a0a0f --- /dev/null +++ b/app/routes/missions.km3net.mdx @@ -0,0 +1,13 @@ +--- +handle: + breadcrumb: KM3Net +--- + +import { feature } from '~/lib/env.server' + +export async function loader() { + if (!feature('KM3NET_QUICKSTART')) throw new Response(null, { status: 404 }) + return null +} + +# KM3NeT diff --git a/app/routes/missions.tsx b/app/routes/missions.tsx index f645b3600..8b609fa88 100644 --- a/app/routes/missions.tsx +++ b/app/routes/missions.tsx @@ -9,6 +9,7 @@ import { NavLink, Outlet } from '@remix-run/react' import { GridContainer } from '@trussworks/react-uswds' import { SideNav } from '~/components/SideNav' +import { useFeature } from '~/root' import type { BreadcrumbHandle } from '~/root/Title' export const handle: BreadcrumbHandle = { breadcrumb: 'Missions' } @@ -50,6 +51,11 @@ export default function () { INTEGRAL , + useFeature('KM3NET_QUICKSTART') && ( + + KM3NeT + + ), Konus-Wind ,