|
2 | 2 | /* eslint-disable react/no-array-index-key */ |
3 | 3 | /* eslint-disable max-len */ |
4 | 4 | import React from 'react'; |
5 | | -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
6 | 5 | import { Link } from "react-router"; |
7 | 6 | import Accordion from "../sharedComponents/accordion/Accordion"; |
8 | 7 | import GlossaryLink from '../sharedComponents/GlossaryLink'; |
| 8 | +import ExternalLink from '../sharedComponents/ExternalLink'; |
9 | 9 |
|
10 | | -const AnalystGuideQuestions = ({ onExternalLinkClick }) => { |
| 10 | +const AnalystGuideQuestions = () => { |
11 | 11 | const jumpToSection = (section = '') => { |
12 | 12 | const sectionDom = document.querySelector(`#${section}`); |
13 | 13 | if (!sectionDom) { |
@@ -79,19 +79,15 @@ const AnalystGuideQuestions = ({ onExternalLinkClick }) => { |
79 | 79 | <p className="analyst-guide__answerStyle">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. </p> |
80 | 80 | <p className="analyst-guide__answerStyle">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.</p> |
81 | 81 | <p className="analyst-guide__answerStyle">More information about these identifiers is{' '} |
82 | | - <button |
83 | | - value="https://github.com/fedspendingtransparency/usaspending-api/wiki/Award-Identifiers" |
84 | | - role="link" |
| 82 | + <ExternalLink |
| 83 | + |
| 84 | + url="https://github.com/fedspendingtransparency/usaspending-api/wiki/Award-Identifiers" |
85 | 85 | className="analyst-guide__external-link" |
86 | | - onClick={onExternalLinkClick}> |
| 86 | + isCard |
| 87 | + showIcon> |
87 | 88 | available online{' '} |
88 | | - <span |
89 | | - data-href="https://github.com/fedspendingtransparency/usaspending-api/wiki/Award-Identifiers" |
90 | | - className="usa-button-link__icon"> |
91 | | - <FontAwesomeIcon data-href="https://github.com/fedspendingtransparency/usaspending-api/wiki/Award-Identifiers" icon="external-link-alt" /> |
92 | | - </span> |
93 | | - . |
94 | | - </button> |
| 89 | + </ExternalLink> |
| 90 | + . |
95 | 91 | </p> |
96 | 92 | <p className="analyst-guide__answerStyle">The Award ID filter on <Link to="/search">Advanced Search</Link> 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.</p> |
97 | 93 | <p className="analyst-guide__answerStyle">More information about these fields is available in the <Link to="/data-dictionary">Data Dictionary</Link> and the <a href="https://files.usaspending.gov/docs/Custom+Account+Data+Dictionary.xlsx">Custom Account Data Dictionary</a>.</p> |
@@ -361,7 +357,7 @@ const AnalystGuideQuestions = ({ onExternalLinkClick }) => { |
361 | 357 | { |
362 | 358 | question: "How can I download a copy of the full database?", |
363 | 359 | answer: (<> |
364 | | - <p className="analyst-guide__answerStyle">The USAspending <a href="https://files.usaspending.gov/database_download/">SQL Database Downloads page</a> 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.</p> |
| 360 | + <p className="analyst-guide__answerStyle">The USAspending <a href="https://onevoicecrm.my.site.com/usaspending/s/database-download">SQL Database Downloads page</a> 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.</p> |
365 | 361 | </>) |
366 | 362 | }]; |
367 | 363 |
|
@@ -725,18 +721,13 @@ const AnalystGuideQuestions = ({ onExternalLinkClick }) => { |
725 | 721 | question: "What other resources are available to help understand the data in USAspending?", |
726 | 722 | answer: (<> |
727 | 723 | <p className="analyst-guide__answerStyle">The github{' '} |
728 | | - <button |
729 | | - value="https://github.com/fedspendingtransparency/usaspending-api/wiki" |
730 | | - role="link" |
| 724 | + <ExternalLink |
| 725 | + url="https://github.com/fedspendingtransparency/usaspending-api/wiki" |
731 | 726 | className="analyst-guide__external-link" |
732 | | - onClick={onExternalLinkClick}> |
733 | | - wiki{' '} |
734 | | - <span |
735 | | - data-href="https://github.com/fedspendingtransparency/usaspending-api/wiki" |
736 | | - className="usa-button-link__icon"> |
737 | | - <FontAwesomeIcon data-href="https://github.com/fedspendingtransparency/usaspending-api/wiki" icon="external-link-alt" /> |
738 | | - </span> |
739 | | - </button> |
| 727 | + isCard |
| 728 | + showIcon> |
| 729 | + wiki{' '} |
| 730 | + </ExternalLink> |
740 | 731 | {' '}provides information for developers on how the USAspending application works. |
741 | 732 | </p> |
742 | 733 | <p className="analyst-guide__answerStyle">The USAspending's{' '}<a href="https://onevoicecrm.my.site.com/usaspending/s/recordlist/Knowledge__kav/00B3d000000V4WDEA0">FAQ page{' '}</a>provides additional advice for getting the most out of the site. |
|
0 commit comments