Skip to content

Commit

Permalink
Merge pull request #2707 from lpsinger/link-to-original
Browse files Browse the repository at this point in the history
Add link from Circulars moderation page to original Circular
  • Loading branch information
dakota002 authored Nov 12, 2024
2 parents 5fa1e36 + b6c4ab0 commit d085249
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/routes/circulars.moderation.$circularId.$requestor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import type { SEOHandle } from '@nasa-gcn/remix-seo'
import type { ActionFunctionArgs, LoaderFunctionArgs } from '@remix-run/node'
import { Form, redirect, useLoaderData } from '@remix-run/react'
import { Form, Link, redirect, useLoaderData } from '@remix-run/react'
import { Button, ButtonGroup, Checkbox } from '@trussworks/react-uswds'
import { diffLines, diffWords } from 'diff'

Expand Down Expand Up @@ -80,7 +80,12 @@ export default function () {
const { circular, correction } = useLoaderData<typeof loader>()
return (
<>
<h2>Circular {circular.circularId}</h2>
<h2>
Circular{' '}
<Link to={`/circulars/${circular.circularId}`}>
{circular.circularId}
</Link>
</h2>
<h3>Original Author</h3>
<DiffedContent
oldString={circular.submitter}
Expand Down

0 comments on commit d085249

Please sign in to comment.