ordering-ui-react-native 0.16.64 → 0.16.65

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.16.64",
3
+ "version": "0.16.65",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -129,7 +129,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
129
129
  onProductClick={() => onProductClick(product)}
130
130
  productAddedToCartLength={currentCart?.products?.reduce((productsLength: number, Cproduct: any) => { return productsLength + (Cproduct?.id === product?.id ? Cproduct?.quantity : 0) }, 0)}
131
131
  handleUpdateProducts={handleUpdateProducts}
132
- navigation={navigation}
132
+ navigation={navigation}
133
133
  />
134
134
  ))
135
135
  }
@@ -204,7 +204,7 @@ const SinguleProductCardUI = React.memo((props: SingleProductCardParams) => {
204
204
  </OText>
205
205
  </RibbonBox>
206
206
  )}
207
- {product?.images ? (
207
+ {product?.images && (
208
208
  <FastImage
209
209
  style={styles.productStyle}
210
210
  source={{
@@ -213,15 +213,6 @@ const SinguleProductCardUI = React.memo((props: SingleProductCardParams) => {
213
213
  }}
214
214
  resizeMode={FastImage.resizeMode.cover}
215
215
  />
216
- ) : (
217
- <FastImage
218
- style={styles.productStyle}
219
- source={{
220
- uri: Image.resolveAssetSource(theme.images.dummies.product).uri,
221
- priority: FastImage.priority.normal,
222
- }}
223
- resizeMode={FastImage.resizeMode.cover}
224
- />
225
216
  )}
226
217
  </LogoWrapper>
227
218