Skip to content

Commit

Permalink
feat: adds messages to in_review BLI
Browse files Browse the repository at this point in the history
  • Loading branch information
fpigeonjr committed Nov 7, 2024
1 parent b8d22cf commit f7c337e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const CANBudgetLineTable = ({ budgetLines }) => {
{budgetLines.map((budgetLine) => (
<CANBudgetLineTableRow
key={budgetLine.id}
budgetLine={budgetLine}
blId={budgetLine.id}
agreementName="TBD"
obligateDate={formatDateNeeded(budgetLine.date_needed || "")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ import {
} from "../../UI/TableRowExpandable/TableRowExpandable.helpers";
import { useTableRow } from "../../UI/TableRowExpandable/TableRowExpandable.hooks";
import TableTag from "../../UI/TableTag";
import { useChangeRequestsForTooltip } from "../../../hooks/useChangeRequests.hooks";

/**
* @typedef {import("../../../components/BudgetLineItems/BudgetLineTypes").BudgetLine} BudgetLine
*/

/**
* @typedef {Object} CANBudgetLineTableRowProps
* @property {BudgetLine} budgetLine
* @property {number} blId
* @property {string} agreementName - TODO
* @property {string} obligateDate
Expand All @@ -43,6 +45,7 @@ import TableTag from "../../UI/TableTag";
* @returns {JSX.Element} - The component JSX.
*/
const CANBudgetLineTableRow = ({
budgetLine,
blId,
agreementName,
obligateDate,
Expand All @@ -57,6 +60,7 @@ const CANBudgetLineTableRow = ({
procShopCode,
procShopFeePercentage
}) => {
const lockedMessage = useChangeRequestsForTooltip(budgetLine);
const { isExpanded, setIsRowActive, setIsExpanded } = useTableRow();
const borderExpandedStyles = removeBorderBottomIfExpanded(isExpanded);
const bgExpandedStyles = changeBgColorIfExpanded(isExpanded);
Expand Down Expand Up @@ -118,6 +122,7 @@ const CANBudgetLineTableRow = ({
<TableTag
status={status}
inReview={inReview}
lockedMessage={lockedMessage}
/>
</td>
</>
Expand Down

0 comments on commit f7c337e

Please sign in to comment.