ordering-ui-react-native 0.15.79 → 0.15.80
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 +1 -1
- package/themes/kiosk/src/components/Cart/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderDetails/index.tsx +1 -1
- package/themes/original/index.tsx +2 -0
- package/themes/original/src/components/AddressForm/index.tsx +1 -1
- package/themes/original/src/components/AddressList/index.tsx +2 -2
- package/themes/original/src/components/UpsellingProducts/index.tsx +2 -2
- package/themes/original/src/components/UserProfileForm/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -281,7 +281,7 @@ const CartUI = (props: any) => {
|
|
|
281
281
|
<OSRow>
|
|
282
282
|
<OText>
|
|
283
283
|
{fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
|
|
284
|
-
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}
|
|
284
|
+
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
|
|
285
285
|
</OText>
|
|
286
286
|
</OSRow>
|
|
287
287
|
<OText>{parsePrice(fee?.summary?.fixed + (fee?.summary?.percentage_after_discount ?? fee?.summary?.percentage) ?? 0)}</OText>
|
|
@@ -525,7 +525,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
525
525
|
<OSRow>
|
|
526
526
|
<OText>
|
|
527
527
|
{fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
|
|
528
|
-
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}
|
|
528
|
+
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
|
|
529
529
|
</OText>
|
|
530
530
|
</OSRow>
|
|
531
531
|
<OText>{parsePrice(fee?.summary?.fixed + (fee?.summary?.percentage_after_discount ?? fee?.summary?.percentage) ?? 0)}</OText>
|
|
@@ -77,6 +77,7 @@ import { StripeCardsList } from './src/components/StripeCardsList';
|
|
|
77
77
|
import { ProductIngredient } from './src/components/ProductIngredient';
|
|
78
78
|
import { ProductOption } from './src/components/ProductOption';
|
|
79
79
|
import { ProductOptionSubOption } from './src/components/ProductOptionSubOption';
|
|
80
|
+
import { Sessions } from './src/components/Sessions';
|
|
80
81
|
import { SingleProductReview } from './src/components/SingleProductReview';
|
|
81
82
|
import { LogoutButton } from './src/components/LogoutButton';
|
|
82
83
|
import { UserFormDetailsUI } from './src/components/UserFormDetails';
|
|
@@ -227,6 +228,7 @@ export {
|
|
|
227
228
|
ProductIngredient,
|
|
228
229
|
ProductOption,
|
|
229
230
|
ProductOptionSubOption,
|
|
231
|
+
Sessions,
|
|
230
232
|
SingleProductReview,
|
|
231
233
|
LogoutButton,
|
|
232
234
|
UserFormDetailsUI,
|
|
@@ -510,7 +510,7 @@ const AddressFormUI = (props: AddressFormParams) => {
|
|
|
510
510
|
onActionLeft={goToBack}
|
|
511
511
|
showCall={false}
|
|
512
512
|
btnStyle={{ paddingLeft: 0 }}
|
|
513
|
-
style={{ flexDirection: 'column', alignItems: 'flex-start' }}
|
|
513
|
+
style={{ flexDirection: 'column', alignItems: 'flex-start', marginTop: Platform.OS === 'ios' ? 0 : 30 }}
|
|
514
514
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
515
515
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
516
516
|
/>
|
|
@@ -158,7 +158,7 @@ const AddressListUI = (props: AddressListParams) => {
|
|
|
158
158
|
titleAlign={'center'}
|
|
159
159
|
onActionLeft={goToBack}
|
|
160
160
|
showCall={false}
|
|
161
|
-
style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 20 }}
|
|
161
|
+
style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 20, marginTop: Platform.OS === 'ios' ? 0 : 30 }}
|
|
162
162
|
/>
|
|
163
163
|
)}
|
|
164
164
|
{(!addressList.loading || (isFromProductsList || isFromBusinesses || isFromProfile || isProfile)) && (
|
|
@@ -179,7 +179,7 @@ const AddressListUI = (props: AddressListParams) => {
|
|
|
179
179
|
showCall={false}
|
|
180
180
|
btnStyle={{ paddingLeft: 0 }}
|
|
181
181
|
paddingTop={0}
|
|
182
|
-
style={{ flexDirection: 'column', alignItems: 'flex-start' }}
|
|
182
|
+
style={{ flexDirection: 'column', alignItems: 'flex-start', marginTop: Platform.OS === 'ios' ? 0 : 40 }}
|
|
183
183
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
184
184
|
titleStyle={{ marginLeft: 0, marginRight: 0 }}
|
|
185
185
|
/>
|
|
@@ -163,7 +163,7 @@ const UpsellingProductsUI = (props: UpsellingProductsParams) => {
|
|
|
163
163
|
const UpsellingContent = () => {
|
|
164
164
|
return (
|
|
165
165
|
<>
|
|
166
|
-
<View style={{ ...styles.headerItem, flex: 1 }}>
|
|
166
|
+
<View style={{ ...styles.headerItem, flex: 1, marginTop: Platform.OS == 'ios' ? 35 : 70 }}>
|
|
167
167
|
<OButton
|
|
168
168
|
imgLeftSrc={theme.images.general.arrow_left}
|
|
169
169
|
imgRightSrc={null}
|
|
@@ -172,7 +172,7 @@ const UpsellingProductsUI = (props: UpsellingProductsParams) => {
|
|
|
172
172
|
imgLeftStyle={{ tintColor: theme.colors.textNormal, width: 16 }}
|
|
173
173
|
/>
|
|
174
174
|
</View>
|
|
175
|
-
<ScrollView style={{ marginBottom: props.isPage ? 40 : bottom + (Platform.OS == 'ios' ? 96 : 130) }} showsVerticalScrollIndicator={false}>
|
|
175
|
+
<ScrollView style={{ marginTop: 10, marginBottom: props.isPage ? 40 : bottom + (Platform.OS == 'ios' ? 96 : 130) }} showsVerticalScrollIndicator={false}>
|
|
176
176
|
{productsList.length > 0 &&
|
|
177
177
|
<View style={{ paddingHorizontal: 40, overflow: 'visible' }}>
|
|
178
178
|
<OText size={16} lineHeight={24} weight={'500'}>{t('WANT_SOMETHING_ELSE', 'Do you want something else?')}</OText>
|
|
@@ -283,7 +283,7 @@ const ProfileUI = (props: ProfileParams) => {
|
|
|
283
283
|
titleAlign={'center'}
|
|
284
284
|
onActionLeft={() => navigation.goBack()}
|
|
285
285
|
showCall={false}
|
|
286
|
-
style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 30 }}
|
|
286
|
+
style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 30 , marginTop: Platform.OS === 'ios' ? 50 : 40 }}
|
|
287
287
|
/>
|
|
288
288
|
<KeyboardAvoidingView behavior={Platform.OS == 'ios' ? 'padding' : 'height'} enabled style={{ flex: 1, flexDirection: 'column', justifyContent: 'center' }}>
|
|
289
289
|
<Container noPadding>
|