ordering-ui-react-native 0.26.1 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -354,7 +354,7 @@ const CartUI = (props: any) => {
|
|
|
354
354
|
<OSTable key={`${fee.id}_${i}`}>
|
|
355
355
|
<OSRow>
|
|
356
356
|
<OText size={12} lineHeight={18} numberOfLines={1}>
|
|
357
|
-
{fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
|
|
357
|
+
{t(fee.name?.toUpperCase()?.replace(/ /g, '_'), fee.name) || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
|
|
358
358
|
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
|
|
359
359
|
</OText>
|
|
360
360
|
<TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })} >
|
|
@@ -959,7 +959,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
959
959
|
<Table key={fee.id}>
|
|
960
960
|
<OSRow>
|
|
961
961
|
<OText size={12} lineHeight={18} weight={'400'} color={theme.colors.textNormal} numberOfLines={1}>
|
|
962
|
-
{fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
|
|
962
|
+
{t(fee.name?.toUpperCase()?.replace(/ /g, '_'), fee.name) || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
|
|
963
963
|
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
|
|
964
964
|
</OText>
|
|
965
965
|
<TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })}>
|