ordering-ui-react-native 0.17.58-release → 0.17.59-release
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
|
@@ -569,6 +569,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
569
569
|
{
|
|
570
570
|
!businessId && !props.franchiseId && (
|
|
571
571
|
<HighestRatedBusinesses
|
|
572
|
+
propsToFetch={props.propsToFetch}
|
|
572
573
|
onBusinessClick={handleBusinessClick}
|
|
573
574
|
navigation={navigation}
|
|
574
575
|
favoriteIds={favoriteIds}
|
|
@@ -55,7 +55,7 @@ import { ProductOptionSubOption } from '../ProductOptionSubOption';
|
|
|
55
55
|
import { NotFoundSource } from '../NotFoundSource';
|
|
56
56
|
import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
|
|
57
57
|
import NavBar from '../NavBar';
|
|
58
|
-
import { orderTypeList
|
|
58
|
+
import { orderTypeList } from '../../utils';
|
|
59
59
|
const windowWidth = Dimensions.get('window').width;
|
|
60
60
|
|
|
61
61
|
export const ProductOptionsUI = (props: any) => {
|
|
@@ -176,7 +176,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
176
176
|
marginTop: 10
|
|
177
177
|
},
|
|
178
178
|
wrapperNavbar: {
|
|
179
|
-
paddingHorizontal:
|
|
179
|
+
paddingHorizontal: 30,
|
|
180
180
|
paddingTop: 0,
|
|
181
181
|
}
|
|
182
182
|
});
|
|
@@ -493,9 +493,9 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
493
493
|
: t('LOGIN_SIGNUP', 'Login / Sign Up')
|
|
494
494
|
}
|
|
495
495
|
imgRightSrc=""
|
|
496
|
-
textStyle={{ color: theme.colors.primary, fontSize:
|
|
496
|
+
textStyle={{ color: theme.colors.primary, fontSize: 13, textAlign: 'center' }}
|
|
497
497
|
style={{
|
|
498
|
-
height:
|
|
498
|
+
height: 42,
|
|
499
499
|
borderColor: theme.colors.primary,
|
|
500
500
|
backgroundColor: theme.colors.white,
|
|
501
501
|
paddingLeft: 0,
|
|
@@ -510,7 +510,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
510
510
|
<PlaceholderLine width={60} height={20} />
|
|
511
511
|
</Placeholder>
|
|
512
512
|
) : (
|
|
513
|
-
<OText color={theme.colors.primary} size={13}>{t('WITH_GUEST_USER', 'With Guest user')}</OText>
|
|
513
|
+
<OText color={theme.colors.primary} size={13} style={{ textAlign: 'center' }}>{t('WITH_GUEST_USER', 'With Guest user')}</OText>
|
|
514
514
|
)}
|
|
515
515
|
</TouchableOpacity>
|
|
516
516
|
)}
|
|
@@ -539,7 +539,10 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
539
539
|
<TopHeader>
|
|
540
540
|
<>
|
|
541
541
|
<TopActions onPress={() => handleGoBack()}>
|
|
542
|
-
<
|
|
542
|
+
<IconAntDesign
|
|
543
|
+
name='arrowleft'
|
|
544
|
+
size={26}
|
|
545
|
+
/>
|
|
543
546
|
</TopActions>
|
|
544
547
|
{showTitle && (
|
|
545
548
|
<OText
|
|
@@ -610,7 +613,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
610
613
|
>
|
|
611
614
|
{(String(img).includes('http') || typeof img === 'number') ? (
|
|
612
615
|
<FastImage
|
|
613
|
-
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio:
|
|
616
|
+
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 4 / 3 }}
|
|
614
617
|
source={typeof img !== 'number' ? {
|
|
615
618
|
uri: optimizeImage(img, 'h_1024,c_limit'),
|
|
616
619
|
priority: FastImage.priority.normal,
|
|
@@ -687,7 +690,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
687
690
|
)}
|
|
688
691
|
</WrapHeader>
|
|
689
692
|
<ProductSummary
|
|
690
|
-
ph={isChewLayout ? 20 :
|
|
693
|
+
ph={isChewLayout ? 20 : 30}
|
|
691
694
|
onLayout={(event: any) => setSummaryRefHeight(event.nativeEvent.layout?.height)}
|
|
692
695
|
>
|
|
693
696
|
<ProductTitle>
|
|
@@ -789,7 +792,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
789
792
|
marginBottom: 20,
|
|
790
793
|
borderBottomWidth: 1,
|
|
791
794
|
borderBottomColor: theme.colors.border,
|
|
792
|
-
marginHorizontal:
|
|
795
|
+
marginHorizontal: 20,
|
|
793
796
|
backgroundColor: theme.colors.backgroundPage,
|
|
794
797
|
}}
|
|
795
798
|
>
|
|
@@ -863,7 +866,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
863
866
|
</>
|
|
864
867
|
) : (
|
|
865
868
|
<ProductEditions
|
|
866
|
-
style={{ paddingHorizontal: isChewLayout ? 20 :
|
|
869
|
+
style={{ paddingHorizontal: isChewLayout ? 20 : 30 }}
|
|
867
870
|
onLayout={(event: any) => {
|
|
868
871
|
setEditionsLayoutY(event.nativeEvent.layout?.y)
|
|
869
872
|
}}
|