Skip to content

Commit d7c6c93

Browse files
lisalupimatthprost
authored andcommitted
feat(OrderSummary): new prop additional info (#5334)
* fix: add additional info prop order summary * fix: test
1 parent 8c2bae9 commit d7c6c93

File tree

7 files changed

+2188
-20
lines changed

7 files changed

+2188
-20
lines changed

.changeset/brave-suns-speak.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/plus": patch
3+
---
4+
5+
`OrderSummary`: add prop "additionalInfo"

packages/plus/src/components/OrderSummary/NonScrollableContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type NonScrollableContentProps = {
1818
children: ReactNode
1919
totalPriceInfo?: ReactNode
2020
totalPriceDescription?: ReactNode
21+
additionalInfo?: string
2122
hideDetails: boolean
2223
unit: TimeUnit
2324
}
@@ -30,6 +31,7 @@ export const NonScrollableContent = ({
3031
hideDetails,
3132
unit,
3233
totalPriceDescription,
34+
additionalInfo,
3335
}: NonScrollableContentProps) => {
3436
const { locales } = useContext(OrderSummaryContext)
3537

@@ -60,7 +62,8 @@ export const NonScrollableContent = ({
6062
sentiment="neutral"
6163
prominence="strong"
6264
>
63-
{locales['order.summary.total']}:
65+
{locales['order.summary.total']}
66+
{additionalInfo ? ` ${additionalInfo}` : null}:
6467
</Text>
6568
{totalPriceDescription}
6669
</Stack>

0 commit comments

Comments
 (0)