ordering-ui-react-native 0.17.30 → 0.17.32
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/original/src/components/AddressForm/index.tsx +1 -1
- package/themes/original/src/components/BusinessProductsListing/index.tsx +1 -1
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +4 -4
- package/themes/original/src/components/ProductForm/index.tsx +3 -3
package/package.json
CHANGED
|
@@ -602,7 +602,7 @@ const AddressFormUI = (props: AddressFormParams) => {
|
|
|
602
602
|
{(
|
|
603
603
|
((!isEditing && !isGuestUser && !formState.changes?.address) ||
|
|
604
604
|
(isEditing && !isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined)) ||
|
|
605
|
-
(isGuestUser && !formState.changes?.address
|
|
605
|
+
(isGuestUser && !formState.changes?.address)) &&
|
|
606
606
|
(
|
|
607
607
|
<View style={styles.pinIcon}>
|
|
608
608
|
<GPSButton
|
|
@@ -362,7 +362,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
|
|
|
362
362
|
</FiltProductsContainer>
|
|
363
363
|
)}
|
|
364
364
|
{isOpenFiltProducts && (
|
|
365
|
-
<BackgroundGray />
|
|
365
|
+
<BackgroundGray isIos={Platform.OS === 'ios'} />
|
|
366
366
|
)}
|
|
367
367
|
<IOScrollView
|
|
368
368
|
stickyHeaderIndices={[business?.professionals?.length > 0 ? 3 : 2]}
|
|
@@ -38,16 +38,16 @@ export const FiltProductsContainer = styled.ScrollView`
|
|
|
38
38
|
position: absolute;
|
|
39
39
|
width: 100%;
|
|
40
40
|
z-index: 2000;
|
|
41
|
-
top:
|
|
41
|
+
top: 80px;
|
|
42
42
|
margin-top: 20px;
|
|
43
43
|
`
|
|
44
44
|
|
|
45
45
|
export const BackgroundGray = styled.View`
|
|
46
46
|
flex: 1;
|
|
47
|
-
height: 100
|
|
47
|
+
height: ${(props: any) => props.isIos ? '80%' : '100%'};
|
|
48
48
|
background-color: rgba(0,0,0,0.5);
|
|
49
|
-
position: absolute;
|
|
50
|
-
margin-top: 100px;
|
|
49
|
+
position: absolute;
|
|
50
|
+
margin-top: 100px;
|
|
51
51
|
z-index: 100;
|
|
52
52
|
width: 100%;
|
|
53
53
|
`
|
|
@@ -528,13 +528,13 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
528
528
|
style={styles.slide1}
|
|
529
529
|
key={i}
|
|
530
530
|
>
|
|
531
|
-
{String(img).includes('image') ? (
|
|
531
|
+
{String(img).includes('image') || typeof img === 'number' ? (
|
|
532
532
|
<FastImage
|
|
533
533
|
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 3 / 2 }}
|
|
534
|
-
source={{
|
|
534
|
+
source={typeof img !== 'number' ? {
|
|
535
535
|
uri: optimizeImage(img, 'h_1024,c_limit'),
|
|
536
536
|
priority: FastImage.priority.normal,
|
|
537
|
-
}}
|
|
537
|
+
} : img}
|
|
538
538
|
/>
|
|
539
539
|
) : (
|
|
540
540
|
<>
|