diff --git a/examples/react-template/screens/Price.tsx b/examples/react-template/screens/Price.tsx index a2876b8c..650916b4 100644 --- a/examples/react-template/screens/Price.tsx +++ b/examples/react-template/screens/Price.tsx @@ -73,18 +73,13 @@ export const PriceScreen = (): JSX.Element => { - - Inlined - - - Alignement - + - + - + diff --git a/packages/react/components/price/Price.tsx b/packages/react/components/price/Price.tsx index ea603d9c..cc0eba5b 100644 --- a/packages/react/components/price/Price.tsx +++ b/packages/react/components/price/Price.tsx @@ -102,20 +102,16 @@ const Price = ({ ) } + const alignmentClasses = { + [Alignable.ALIGNED_START]: 'justified-start', + [Alignable.ALIGNED_CENTER]: 'justified-center', + [Alignable.ALIGNED_END]: 'justified-end', + } + return (
{overline &&

{overline}

} {oldAmountComponent}