From 65b8bc25ee6011408a1db61eaf0d47111bd9faac Mon Sep 17 00:00:00 2001 From: Nick Torres Date: Mon, 27 Apr 2026 08:56:12 -0600 Subject: [PATCH] fix links that error --- .../analystGuide/AnalystGuideIntro.jsx | 2 +- .../analystGuide/AnalystGuidePage.jsx | 2 +- .../analystGuide/AnalystGuideQuestions.jsx | 41 ++++++++----------- .../sharedComponents/ExternalLink.jsx | 25 ++++++----- 4 files changed, 33 insertions(+), 37 deletions(-) diff --git a/src/js/components/analystGuide/AnalystGuideIntro.jsx b/src/js/components/analystGuide/AnalystGuideIntro.jsx index 135162bc31..6066a25450 100644 --- a/src/js/components/analystGuide/AnalystGuideIntro.jsx +++ b/src/js/components/analystGuide/AnalystGuideIntro.jsx @@ -6,7 +6,7 @@ const AnalystGuideIntro = () => (

What is the Federal Spending Guide?

Welcome to the Federal Spending Guide. You’ll find answers here to commonly asked questions about federal spending concepts and USAspending data. We hope this guide makes it easier for you to conduct your own analyses and develop your own tools.

-

If you'd like to recommend a question to be added to this guide, please share it on our Community page or send an email to USAspending.Help@fiscal.treasury.gov. We look forward to hearing from you! +

If you'd like to recommend a question to be added to this guide, please share it on our Community page or send an email to USAspending.Help@fiscal.treasury.gov. We look forward to hearing from you!

diff --git a/src/js/components/analystGuide/AnalystGuidePage.jsx b/src/js/components/analystGuide/AnalystGuidePage.jsx index 9801675bc3..a7a200cbf6 100644 --- a/src/js/components/analystGuide/AnalystGuidePage.jsx +++ b/src/js/components/analystGuide/AnalystGuidePage.jsx @@ -88,7 +88,7 @@ const AnalystGuidePage = () => { - + diff --git a/src/js/components/analystGuide/AnalystGuideQuestions.jsx b/src/js/components/analystGuide/AnalystGuideQuestions.jsx index 31c721ef24..a44c4b3e7a 100644 --- a/src/js/components/analystGuide/AnalystGuideQuestions.jsx +++ b/src/js/components/analystGuide/AnalystGuideQuestions.jsx @@ -2,12 +2,12 @@ /* eslint-disable react/no-array-index-key */ /* eslint-disable max-len */ import React from 'react'; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Link } from "react-router"; import Accordion from "../sharedComponents/accordion/Accordion"; import GlossaryLink from '../sharedComponents/GlossaryLink'; +import ExternalLink from '../sharedComponents/ExternalLink'; -const AnalystGuideQuestions = ({ onExternalLinkClick }) => { +const AnalystGuideQuestions = () => { const jumpToSection = (section = '') => { const sectionDom = document.querySelector(`#${section}`); if (!sectionDom) { @@ -79,19 +79,15 @@ const AnalystGuideQuestions = ({ onExternalLinkClick }) => {

The award_unique_key field contains both financial assistance and contract prime award summary identifier information. This field is available in Treasury and federal account level account breakdown by award account download files. The assistance_award_unique_key field contains financial assistance prime award summary identifier information. This field is available in financial assistance prime award transaction and summary download files. The contract_award_unique_key field contains contract prime award summary identifier information. This field is available in contract prime award transaction and summary download files.

These fields may be used to aggregate, filter, or join account breakdown by award, prime award summary, and prime award transaction download files by prime award summary.

More information about these identifiers is{' '} - + + .

The Award ID filter on Advanced Search can be used to filter award spending by the PIID, FAIN and URI data elements. These data elements are important components of prime award summary identifier information.

More information about these fields is available in the Data Dictionary and the Custom Account Data Dictionary.

@@ -361,7 +357,7 @@ const AnalystGuideQuestions = ({ onExternalLinkClick }) => { { question: "How can I download a copy of the full database?", answer: (<> -

The USAspending SQL Database Downloads page includes instructions and links to help download snapshots of the USAspending database as a PostgreSQL archive. This resource is intended for advanced users. The full database is over 1.5 terabytes and will continue to increase in size. The process to complete a full database restore can take many hours to complete.

+

The USAspending SQL Database Downloads page includes instructions and links to help download snapshots of the USAspending database as a PostgreSQL archive. This resource is intended for advanced users. The full database is over 1.5 terabytes and will continue to increase in size. The process to complete a full database restore can take many hours to complete.

) }]; @@ -725,18 +721,13 @@ const AnalystGuideQuestions = ({ onExternalLinkClick }) => { question: "What other resources are available to help understand the data in USAspending?", answer: (<>

The github{' '} - + isCard + showIcon> + wiki{' '} + {' '}provides information for developers on how the USAspending application works.

The USAspending's{' '}FAQ page{' '}provides additional advice for getting the most out of the site. diff --git a/src/js/components/sharedComponents/ExternalLink.jsx b/src/js/components/sharedComponents/ExternalLink.jsx index b4eaf03c96..d2f791928a 100644 --- a/src/js/components/sharedComponents/ExternalLink.jsx +++ b/src/js/components/sharedComponents/ExternalLink.jsx @@ -12,10 +12,13 @@ import { showModal } from 'redux/actions/modal/modalActions'; const propTypes = { url: PropTypes.string.isRequired, children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.node]), - isCard: PropTypes.bool + isCard: PropTypes.bool, + showIcon: PropTypes.bool }; -const ExternalLink = ({ url, children, isCard }) => { +const ExternalLink = ({ + url, children, isCard, showIcon = false +}) => { const dispatch = useDispatch(); const redirect = () => { dispatch(showModal(url)); @@ -27,14 +30,16 @@ const ExternalLink = ({ url, children, isCard }) => { dispatch(showModal(url)); } }; - return (<> - {isCard ? - {children} - : - } - ); + if (isCard) { + if (showIcon) { + return {children} ; + } + return {children}; + } + return ( + ); }; ExternalLink.propTypes = propTypes;