ordering-ui-react-native 0.22.4-release → 0.22.5-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.22.4-release",
3
+ "version": "0.22.5-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -54,6 +54,7 @@ const SingleProductCardUI = React.memo((props: SingleProductCardParams) => {
54
54
  : theme?.business_view?.components?.products?.components?.product?.components?.image?.hidden
55
55
  const textSize = isChewLayout ? 12 : 10
56
56
  const logoPosition = theme?.business_view?.components?.products?.components?.product?.components?.image?.position
57
+ const hideFavoriteIcon = theme?.business_view?.components?.products?.components?.product?.components?.favorite?.hidden
57
58
 
58
59
  const styles = StyleSheet.create({
59
60
  container: {
@@ -198,7 +199,7 @@ const SingleProductCardUI = React.memo((props: SingleProductCardParams) => {
198
199
  style={{ ...styles.line18, flex: 1 }}>
199
200
  {product?.name}
200
201
  </OText>
201
- {!isPreviously && (
202
+ {!isPreviously && !hideFavoriteIcon && (
202
203
  <LottieAnimation
203
204
  type='favorite'
204
205
  onClick={handleChangeFavorite}