diff --git a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx index 2994f676375..fc37648ee87 100644 --- a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx +++ b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx @@ -2,6 +2,7 @@ import type { CommerceCheckoutResource } from '@clerk/types'; import { useCheckoutContext } from '../../contexts'; import { Box, Button, Col, Flex, Icon, Text } from '../../customizables'; +import { LineItems } from '../../elements'; import { Check } from '../../icons'; import type { ThemableCssProp } from '../../styledSystem'; @@ -49,45 +50,33 @@ export const CheckoutComplete = ({ checkout, sx }: { checkout: CommerceCheckoutR borderTopColor: t.colors.$neutralAlpha100, })} > - - ({ fontWeight: t.fontWeights.$medium })}>Total paid - ({ fontSize: '0.875rem', fontWeight: t.fontWeights.$medium })}> - {checkout.invoice - ? `${checkout.invoice.totals.grandTotal.currencySymbol}${checkout.invoice.totals.grandTotal.amountFormatted}` - : '–'} - - - - ({ fontWeight: t.fontWeights.$medium })}>Payment method - ({ fontSize: '0.875rem', fontWeight: t.fontWeights.$medium })}> - {checkout.paymentSource ? `${checkout.paymentSource.cardType} ⋯ ${checkout.paymentSource.last4}` : '–'} - - - - ({ fontWeight: t.fontWeights.$medium })}>Invoice ID - ({ fontSize: '0.875rem', fontWeight: t.fontWeights.$medium })} - > - {checkout.invoice ? checkout.invoice.id : '–'} - - + + + Total paid + + {checkout.invoice + ? `${checkout.invoice.totals.grandTotal.currencySymbol}${checkout.invoice.totals.grandTotal.amountFormatted}` + : '–'} + + + + Payment method + + {checkout.invoice + ? `${checkout.invoice.totals.grandTotal.currencySymbol}${checkout.invoice.totals.grandTotal.amountFormatted}` + : '–'} + + + + Invoice ID + {checkout.invoice ? checkout.invoice.id : '–'} + +