From 209985d0b0f7305e3715926efd777261c95e7936 Mon Sep 17 00:00:00 2001
From: Aaron Couch
Date: Fri, 10 Jan 2025 15:08:07 -0500
Subject: [PATCH] [Issue #3289] content cleanup (#3382)
## Summary
Fixes #3289
### Time to review: __2 mins__
## Changes proposed
Small changes from previous PR:
* `gitHubIssueLink()` function
* bold weight for links
* order of list
---------
Co-authored-by: doug-s-nava <92806979+doug-s-nava@users.noreply.github.com>
---
.../src/app/[locale]/process/ProcessNext.tsx | 66 ++++++++-----------
frontend/src/i18n/messages/en/index.ts | 10 +--
.../tests/components/ProcessNext.test.tsx | 13 +++-
3 files changed, 46 insertions(+), 43 deletions(-)
diff --git a/frontend/src/app/[locale]/process/ProcessNext.tsx b/frontend/src/app/[locale]/process/ProcessNext.tsx
index d24a09ea5..2adc5f5a0 100644
--- a/frontend/src/app/[locale]/process/ProcessNext.tsx
+++ b/frontend/src/app/[locale]/process/ProcessNext.tsx
@@ -2,7 +2,7 @@ import { ExternalRoutes } from "src/constants/routes";
import { useMessages, useTranslations } from "next-intl";
import Link from "next/link";
-import React from "react";
+import React, { ReactNode } from "react";
import {
Grid,
GridContainer,
@@ -14,6 +14,30 @@ import {
import { USWDSIcon } from "src/components/USWDSIcon";
+const GithubIssueLink = ({
+ issueNumber,
+ chunks,
+}: {
+ issueNumber: number;
+ chunks: ReactNode;
+}) => (
+
+ {chunks}
+
+);
+
+export const gitHubLinkForIssue = (issueNumber: number) => {
+ const PartialIssueLink = (chunks: ReactNode) => (
+
+ );
+ PartialIssueLink.displayName = "GithubIssueLink";
+ return PartialIssueLink;
+};
+
const ProcessNext = () => {
const t = useTranslations("Process.next");
const messages = useMessages() as unknown as IntlMessages;
@@ -36,42 +60,10 @@ const ProcessNext = () => {
{chunks}
),
- linkGithub3045: (chunks) => (
-
- {chunks}
-
- ),
- linkGithub2875: (chunks) => (
-
- {chunks}
-
- ),
- linkGithub2640: (chunks) => (
-
- {chunks}
-
- ),
- linkGithub3348: (chunks) => (
-
- {chunks}
-
- ),
+ linkGithub3045: gitHubLinkForIssue(3045),
+ linkGithub2875: gitHubLinkForIssue(2875),
+ linkGithub2640: gitHubLinkForIssue(2640),
+ linkGithub3348: gitHubLinkForIssue(3348),
});
return (
Follow #2640 on GitHub",
},
- {
- title: "Search & Opportunity Listing improvements",
- content:
- "With feedback from the community, we will iterate on improvements that make it easier to adjust search filter criteria, share search results, and save relevant results and opportunities.
Follow #2875 on GitHub
",
- },
{
title:
"Full support for Opportunity Listing attachments (NOFOs/downloads)",
content:
"The opportunity listings on Simpler.Grants.gov will include all information and file attachments available on Grants.gov. Design updates will make the Notice of Funding Opportunity (NOFO) easier to access.
Follow #3045 on GitHub
",
},
+ {
+ title: "Search & Opportunity Listing improvements",
+ content:
+ "With feedback from the community, we will iterate on improvements that make it easier to adjust search filter criteria, share search results, and save relevant results and opportunities.