ordering-ui-react-native 0.17.91-release → 0.17.92-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
|
@@ -800,7 +800,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
800
800
|
parentStyle={{ marginTop: 29, marginEnd: 15 }}
|
|
801
801
|
onClick={() => navigation.navigate('BottomTab', { screen: 'MyOrders' })}
|
|
802
802
|
/>
|
|
803
|
-
{(reorderStatus?.includes(parseInt(order?.status)) && order?.cart) && (
|
|
803
|
+
{(reorderStatus?.includes(parseInt(order?.status)) && order?.cart) && !isGiftCardOrder && (
|
|
804
804
|
<OButton
|
|
805
805
|
text={order.id === reorderState?.loading ? t('LOADING', 'Loading..') : t('REORDER', 'Reorder')}
|
|
806
806
|
textStyle={{ fontSize: 14, color: theme.colors.primary }}
|
|
@@ -53,6 +53,7 @@ const SingleOrderCardUI = (props: SingleOrderCardParams) => {
|
|
|
53
53
|
const [isPressed, setIsPressed] = useState(false)
|
|
54
54
|
|
|
55
55
|
const allowedOrderStatus = [1, 2, 5, 6, 10, 11, 12, 15];
|
|
56
|
+
const isGiftCardOrder = !order?.business_id
|
|
56
57
|
|
|
57
58
|
const styles = StyleSheet.create({
|
|
58
59
|
container: {
|
|
@@ -290,7 +291,7 @@ const SingleOrderCardUI = (props: SingleOrderCardParams) => {
|
|
|
290
291
|
)}
|
|
291
292
|
</>
|
|
292
293
|
)}
|
|
293
|
-
{!!pastOrders && (
|
|
294
|
+
{!!pastOrders && !isGiftCardOrder && (
|
|
294
295
|
<ButtonWrapper>
|
|
295
296
|
{!hideReviewOrderButton &&
|
|
296
297
|
allowedOrderStatus.includes(parseInt(order?.status)) &&
|