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 ,