From ba5d0d9d02e2ca65f619660704c9e4f0dd9af554 Mon Sep 17 00:00:00 2001 From: Dakota Dutko Date: Fri, 22 Nov 2024 09:13:52 -0500 Subject: [PATCH] adds initial km3net notice and mission page link (#2629) --- .../NoticeTypeCheckboxes/NoticeTypeCheckboxes.tsx | 5 +++++ app/routes/missions.km3net.mdx | 13 +++++++++++++ app/routes/missions.tsx | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 app/routes/missions.km3net.mdx diff --git a/app/components/NoticeTypeCheckboxes/NoticeTypeCheckboxes.tsx b/app/components/NoticeTypeCheckboxes/NoticeTypeCheckboxes.tsx index 84c18bd10..690b86b3e 100644 --- a/app/components/NoticeTypeCheckboxes/NoticeTypeCheckboxes.tsx +++ b/app/components/NoticeTypeCheckboxes/NoticeTypeCheckboxes.tsx @@ -249,6 +249,11 @@ export function NoticeTypeCheckboxes({ JsonNoticeTypeLinks.Chime = '/missions/chime' } + if (useFeature('KM3NET')) { + JsonNoticeTypes.KM3NET = ['gcn.notices.km3net'] + JsonNoticeTypeLinks.KM3NET = '/missions/km3net' + } + const counterfunction = (childRef: HTMLInputElement) => { if (childRef.checked) { userSelected.add(childRef.name) diff --git a/app/routes/missions.km3net.mdx b/app/routes/missions.km3net.mdx new file mode 100644 index 000000000..1cddba1c6 --- /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')) throw new Response(null, { status: 404 }) + return null +} + +# KM3NeT diff --git a/app/routes/missions.tsx b/app/routes/missions.tsx index 7f2292074..c875dcc42 100644 --- a/app/routes/missions.tsx +++ b/app/routes/missions.tsx @@ -56,6 +56,11 @@ export default function () { INTEGRAL , + useFeature('KM3NET') && ( + + KM3NeT + + ), Konus-Wind ,