Skip to content

Commit

Permalink
Adds a placeholder mission page and link
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed Oct 16, 2024
1 parent 5b52313 commit 576b62c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
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_QUICKSTART')) throw new Response(null, { status: 404 })
return null
}

# KM3NeT
6 changes: 6 additions & 0 deletions app/routes/missions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Check warning on line 12 in app/routes/missions.tsx

View check run for this annotation

Codecov / codecov/patch

app/routes/missions.tsx#L12

Added line #L12 was not covered by tests
import type { BreadcrumbHandle } from '~/root/Title'

export const handle: BreadcrumbHandle = { breadcrumb: 'Missions' }
Expand Down Expand Up @@ -50,6 +51,11 @@ export default function () {
<NavLink key="integral" to="integral">
INTEGRAL
</NavLink>,
useFeature('KM3NET_QUICKSTART') && (
<NavLink key="km3net" to="km3net">
KM3NeT
</NavLink>
),
<NavLink key="konus" to="konus">
Konus-Wind
</NavLink>,
Expand Down

0 comments on commit 576b62c

Please sign in to comment.