ordering-ui-react-native 0.16.22-release → 0.16.23-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
|
@@ -271,9 +271,11 @@ export const BusinessBasicInformation = (
|
|
|
271
271
|
? styles.businesInfoheaderStyle
|
|
272
272
|
: { ...styles.headerStyle, backgroundColor: theme.colors.backgroundGray }
|
|
273
273
|
}
|
|
274
|
-
{...(!loading && {
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
{...(!loading && {
|
|
275
|
+
source: (header || businessState?.business?.header) ? {
|
|
276
|
+
uri: header || optimizeImage(businessState?.business?.header, 'h_250,c_limit')
|
|
277
|
+
} : theme?.images?.dummies?.businessHeader
|
|
278
|
+
})}
|
|
277
279
|
imageStyle={{ opacity: isChewLayout ? 0.5 : 1 }}
|
|
278
280
|
>
|
|
279
281
|
{!isBusinessInfoShow && !isChewLayout && (
|
|
@@ -174,10 +174,10 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
174
174
|
<BusinessHero>
|
|
175
175
|
<FastImage
|
|
176
176
|
style={{ height: 120 }}
|
|
177
|
-
source={{
|
|
178
|
-
uri: optimizeImage(businessHeader || business?.header
|
|
177
|
+
source={(businessHeader || business?.header) ? {
|
|
178
|
+
uri: optimizeImage(businessHeader || business?.header, 'h_500,c_limit'),
|
|
179
179
|
priority: FastImage.priority.normal,
|
|
180
|
-
}}
|
|
180
|
+
} : theme.images.dummies.businessHeader}
|
|
181
181
|
resizeMode={FastImage.resizeMode.cover}
|
|
182
182
|
/>
|
|
183
183
|
{(businessFeatured ?? business?.featured) && (
|
|
@@ -203,10 +203,10 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
203
203
|
<BusinessLogo style={styles.businessLogo}>
|
|
204
204
|
<FastImage
|
|
205
205
|
style={{ width: 56, height: 56 }}
|
|
206
|
-
source={{
|
|
207
|
-
uri: optimizeImage(businessLogo || business?.logo
|
|
206
|
+
source={(businessLogo || business?.logo) ? {
|
|
207
|
+
uri: optimizeImage(businessLogo || business?.logo, 'h_150,c_limit'),
|
|
208
208
|
priority: FastImage.priority.normal,
|
|
209
|
-
}}
|
|
209
|
+
} : theme.images.dummies.businessLogo}
|
|
210
210
|
resizeMode={FastImage.resizeMode.cover}
|
|
211
211
|
/>
|
|
212
212
|
</BusinessLogo>
|