Skip to content

Commit

Permalink
chore: add reasons for blanks in locations in summary ccbc
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath committed Jan 14, 2025
1 parent ba8f094 commit 64ec0f6
Show file tree
Hide file tree
Showing 5 changed files with 568 additions and 115 deletions.
6 changes: 6 additions & 0 deletions app/components/Review/fields/ReviewFieldTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const StyledHelp = styled(Help)`
cursor: pointer;
`;

const StyledSpan = styled.span`
color: ${(props) => props.theme.color.disabledGrey};
`;

const ReviewFieldTemplate: React.FC<FieldTemplateProps> = ({
id,
formContext,
Expand Down Expand Up @@ -58,6 +62,7 @@ const ReviewFieldTemplate: React.FC<FieldTemplateProps> = ({
Object.keys(rfi?.jsonData?.rfiAdditionalFiles || []).includes(fieldName)
);
const hasError = isErrors && !isFieldInRfi;
const fallBackField = formContext?.fallBackFields?.[fieldName];

return (
<>
Expand All @@ -70,6 +75,7 @@ const ReviewFieldTemplate: React.FC<FieldTemplateProps> = ({
errorColor={errorColor}
errorTextColor={errorTextColor}
>
{fallBackField && <StyledSpan>{fallBackField}</StyledSpan>}
{children}
{hasError && showErrorHint && hasFormContextError && (
<Tooltip
Expand Down
Loading

0 comments on commit 64ec0f6

Please sign in to comment.