Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link from Circulars moderation page to original Circular #2707

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'

Check warning on line 10 in app/routes/circulars.moderation.$circularId.$requestor.tsx

View check run for this annotation

Codecov / codecov/patch

app/routes/circulars.moderation.$circularId.$requestor.tsx#L10

Added line #L10 was not covered by tests
import { Button, ButtonGroup, Checkbox } from '@trussworks/react-uswds'
import { diffLines, diffWords } from 'diff'

Expand Down Expand Up @@ -80,7 +80,12 @@
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
Loading