Skip to content

Commit

Permalink
adds initial km3net notice and mission page link (#2629)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 authored Nov 22, 2024
1 parent 25b9562 commit ba5d0d9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/components/NoticeTypeCheckboxes/NoticeTypeCheckboxes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 13 additions & 0 deletions app/routes/missions.km3net.mdx
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions app/routes/missions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export default function () {
<NavLink key="integral" to="integral">
INTEGRAL
</NavLink>,
useFeature('KM3NET') && (
<NavLink key="km3net" to="km3net">
KM3NeT
</NavLink>
),
<NavLink key="konus" to="konus">
Konus-Wind
</NavLink>,
Expand Down

0 comments on commit ba5d0d9

Please sign in to comment.