ordering-ui-react-native 0.12.53 → 0.12.54

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.12.53",
3
+ "version": "0.12.54",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -40,7 +40,6 @@ export const OrderContentComponent = (props: OrderContent) => {
40
40
  const [{ parsePrice, parseNumber }] = useUtils();
41
41
  const [{ configs }] = useConfig();
42
42
  const [openReviewModal, setOpenReviewModal] = useState(false)
43
- const [isCustomerReviewed, setIsCustomerReviewed] = useState(false)
44
43
 
45
44
  const pastOrderStatuses = [1, 2, 5, 6, 10, 11, 12, 16, 17]
46
45
 
@@ -65,11 +64,6 @@ export const OrderContentComponent = (props: OrderContent) => {
65
64
  }
66
65
  })
67
66
 
68
- const handleSuccessReviewed = () => {
69
- setOpenReviewModal(false)
70
- setIsCustomerReviewed(true)
71
- }
72
-
73
67
  return (
74
68
  <OrderContent isOrderGroup={isOrderGroup} lastOrder={lastOrder}>
75
69
  {isOrderGroup && (
@@ -265,7 +259,7 @@ export const OrderContentComponent = (props: OrderContent) => {
265
259
  {order?.customer?.zipcode}
266
260
  </OText>
267
261
  )}
268
- {/* {!order?.user_review && pastOrderStatuses.includes(order?.status) && !isCustomerReviewed && (
262
+ {!order?.user_review && pastOrderStatuses.includes(order?.status) && (
269
263
  <OButton
270
264
  style={styles.btnReview}
271
265
  textStyle={{ color: theme.colors.white }}
@@ -273,7 +267,7 @@ export const OrderContentComponent = (props: OrderContent) => {
273
267
  imgRightSrc={false}
274
268
  onClick={() => setOpenReviewModal(true)}
275
269
  />
276
- )} */}
270
+ )}
277
271
  </OrderCustomer>
278
272
 
279
273
  <OrderProducts>
@@ -445,7 +439,7 @@ export const OrderContentComponent = (props: OrderContent) => {
445
439
  <ReviewCustomer
446
440
  order={order}
447
441
  closeModal={() => setOpenReviewModal(false)}
448
- onClose={() => handleSuccessReviewed()}
442
+ onClose={() => setOpenReviewModal(false)}
449
443
  />
450
444
  </OModal>
451
445
  </OrderContent>