Skip to content

Commit 7b27962

Browse files
committed
feat: remove CANFundingInfoCard fiscalYear prop and update display text
1 parent 5555f84 commit 7b27962

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

frontend/src/components/CANs/CANFundingInfoCard/CANFundingInfoCard.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ import { formatObligateBy } from "../CANTable/CANTable.helpers";
99
/**
1010
* @typedef {Object} CANFundingInfoCard
1111
* @property {FundingDetails} [funding]
12-
* @property {number} fiscalYear
1312
*/
1413

1514
/**
1615
* @component - The CAN Funding component.
1716
* @param {CANFundingInfoCard} props
1817
* @returns {JSX.Element} - The component JSX.
1918
*/
20-
const CANFundingInfoCard = ({ funding, fiscalYear }) => {
19+
const CANFundingInfoCard = ({ funding }) => {
2120
if (!funding) {
2221
return <div>No funding information available for this CAN.</div>;
2322
}
@@ -31,7 +30,7 @@ const CANFundingInfoCard = ({ funding, fiscalYear }) => {
3130
className="margin-0 margin-bottom-2 font-12px text-base-dark text-normal"
3231
style={{ whiteSpace: "pre-line", lineHeight: "20px" }}
3332
>
34-
{`FY ${fiscalYear} CAN Funding Information`}
33+
CAN Funding Information
3534
</h3>
3635
<div className="grid-row grid-gap">
3736
<div className="grid-col">

frontend/src/pages/cans/detail/CanFunding.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,11 @@ const CanFunding = ({
163163
? "The summary below shows the funding for this CAN for the select fiscal year."
164164
: "Review the new FY Funding Information for this CAN."}
165165
</p>
166-
<CANFundingInfoCard
167-
funding={funding}
168-
fiscalYear={fiscalYear}
169-
/>
166+
<CANFundingInfoCard funding={funding} />
167+
<p className="font-12px text-base-dark">
168+
* CAN Funding Information contains the latest CANBACs data, and does not reference historical changes if
169+
there were any
170+
</p>
170171
{!isEditMode ? (
171172
<section
172173
id="cards"

0 commit comments

Comments
 (0)