From 1328a7bd08addf6f8ed682740c1e8549d28aa128 Mon Sep 17 00:00:00 2001 From: "Frank Pigeon Jr." Date: Fri, 6 Dec 2024 09:29:04 -0600 Subject: [PATCH] feat: api integration for CANFundingInfoCard (#3182) * feat: api integration for CANFundingInfoCard * fix: correct funding_received --------- Co-authored-by: maiyerlee --- backend/ops_api/ops/schemas/cans.py | 2 +- .../CANFundingInfoCard/CANFundingInfoCard.jsx | 15 ++++++--------- frontend/src/components/CANs/CANTypes.d.ts | 3 +++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/ops_api/ops/schemas/cans.py b/backend/ops_api/ops/schemas/cans.py index b35dc38438..dfaca4c096 100644 --- a/backend/ops_api/ops/schemas/cans.py +++ b/backend/ops_api/ops/schemas/cans.py @@ -118,7 +118,7 @@ class CreateUpdateFundingDetailsSchema(Schema): class FundingDetailsSchema(Schema): active_period = fields.Integer(allow_none=True) funding_method = fields.String(allow_none=True) - funding_frequency = fields.String(allow_none=True) + funding_received = fields.String(allow_none=True) funding_type = fields.String(allow_none=True) allotment = fields.String(allow_none=True) allowance = fields.String(allow_none=True) diff --git a/frontend/src/components/CANs/CANFundingInfoCard/CANFundingInfoCard.jsx b/frontend/src/components/CANs/CANFundingInfoCard/CANFundingInfoCard.jsx index 2221c12db0..066a90f7f7 100644 --- a/frontend/src/components/CANs/CANFundingInfoCard/CANFundingInfoCard.jsx +++ b/frontend/src/components/CANs/CANFundingInfoCard/CANFundingInfoCard.jsx @@ -78,12 +78,10 @@ const CANFundingInfoCard = ({ funding, fiscalYear }) => {
- {/* TODO: ask where this comes from */} - {/* TODO: ask where this comes from */} {
{
- {/* TODO: ask where this comes from */}