Skip to content

Commit

Permalink
Feature: update confirmation page detail values to allow html (#7214)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Waldstein <[email protected]>
  • Loading branch information
jonwaldstein and Jon Waldstein authored Feb 1, 2024
1 parent 992000d commit ebc1309
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const SecureBadge = () => {

/**
*
* @unreleased updated to render value using Interweave
* @since 3.0.0
*/
const Details = ({id, heading, details}: {id: string; heading: string; details: ReceiptDetail[]}) =>
Expand All @@ -27,9 +28,7 @@ const Details = ({id, heading, details}: {id: string; heading: string; details:
{details.map(({label, value}, index) => (
<div key={index} className={`details-row details-row--${label.toLowerCase().replace(' ', '-')}`}>
<dt className="detail">{label}</dt>
<dd className="value" data-value={value}>
{value}
</dd>
<Interweave className="value" tagName="dd" data-value={value} content={value} />
</div>
))}
</dl>
Expand Down

0 comments on commit ebc1309

Please sign in to comment.