ordering-ui-react-native 0.17.41 → 0.17.42
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
|
@@ -272,9 +272,9 @@ export const BusinessBasicInformation = (
|
|
|
272
272
|
: { ...styles.headerStyle, backgroundColor: theme.colors.backgroundGray }
|
|
273
273
|
}
|
|
274
274
|
{...(!loading && {
|
|
275
|
-
source: {
|
|
276
|
-
uri: header || optimizeImage(businessState?.business?.header
|
|
277
|
-
}
|
|
275
|
+
source: (header || businessState?.business?.header) ? {
|
|
276
|
+
uri: header || optimizeImage(businessState?.business?.header, 'h_250,c_limit')
|
|
277
|
+
} : theme?.images?.dummies?.businessHeader
|
|
278
278
|
})}
|
|
279
279
|
imageStyle={{ opacity: isChewLayout ? 0.5 : 1 }}
|
|
280
280
|
>
|
|
@@ -186,10 +186,10 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
186
186
|
<BusinessHero>
|
|
187
187
|
<FastImage
|
|
188
188
|
style={{ height: 120 }}
|
|
189
|
-
source={{
|
|
190
|
-
uri: optimizeImage(businessHeader || business?.header
|
|
189
|
+
source={(businessHeader || business?.header) ? {
|
|
190
|
+
uri: optimizeImage(businessHeader || business?.header, 'h_500,c_limit'),
|
|
191
191
|
priority: FastImage.priority.normal,
|
|
192
|
-
}}
|
|
192
|
+
} : theme.images.dummies.businessHeader}
|
|
193
193
|
resizeMode={FastImage.resizeMode.cover}
|
|
194
194
|
/>
|
|
195
195
|
{(businessFeatured ?? business?.featured) && (
|
|
@@ -215,10 +215,10 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
215
215
|
<BusinessLogo style={styles.businessLogo}>
|
|
216
216
|
<FastImage
|
|
217
217
|
style={{ width: 56, height: 56 }}
|
|
218
|
-
source={{
|
|
219
|
-
uri: optimizeImage(businessLogo || business?.logo
|
|
218
|
+
source={(businessLogo || business?.logo) ? {
|
|
219
|
+
uri: optimizeImage(businessLogo || business?.logo, 'h_150,c_limit'),
|
|
220
220
|
priority: FastImage.priority.normal,
|
|
221
|
-
}}
|
|
221
|
+
} : theme.images.dummies.businessLogo}
|
|
222
222
|
resizeMode={FastImage.resizeMode.cover}
|
|
223
223
|
/>
|
|
224
224
|
</BusinessLogo>
|