ordering-ui-react-native 0.12.48 → 0.12.49

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.48",
3
+ "version": "0.12.49",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -369,6 +369,7 @@ export const AcceptOrRejectOrder = (props: AcceptOrRejectOrderParams) => {
369
369
  placeholderTextColor={theme.colors.textGray}
370
370
  color={theme.colors.textGray}
371
371
  onEndEditing={handleFixTime}
372
+ onSubmitEditing={() => handleAcceptOrReject()}
372
373
  onBlur={() => actions && action === 'accept' && timerRef?.current?.focus?.()}
373
374
  />
374
375
 
@@ -98,29 +98,34 @@ export const OrderHeaderComponent = (props: OrderHeader) => {
98
98
  {
99
99
  (!order?.isLogistic || !logisticOrderStatus?.includes(order?.status)) && (
100
100
  <Actions>
101
- <OIconButton
102
- icon={theme.images.general.copy}
103
- iconStyle={{
104
- width: 20,
105
- height: 25,
106
- top: 2,
107
- tintColor: theme.colors.backArrow,
108
- }}
109
- borderColor={theme.colors.clear}
110
- style={styles.icons}
111
- onClick={() => handleCopyClipboard()}
112
- />
113
- <OIconButton
114
- icon={theme.images.general.print}
115
- iconStyle={{
116
- width: 25,
117
- height: 22,
118
- tintColor: theme.colors.backArrow,
119
- }}
120
- borderColor={theme.colors.clear}
121
- style={styles.icons}
122
- onClick={() => handleViewSummaryOrder()}
123
- />
101
+ {getOrderStatus(order?.status, t)?.value !==
102
+ t('PENDING', 'Pending') && (
103
+ <>
104
+ <OIconButton
105
+ icon={theme.images.general.copy}
106
+ iconStyle={{
107
+ width: 20,
108
+ height: 25,
109
+ top: 2,
110
+ tintColor: theme.colors.backArrow,
111
+ }}
112
+ borderColor={theme.colors.clear}
113
+ style={styles.icons}
114
+ onClick={() => handleCopyClipboard()}
115
+ />
116
+ <OIconButton
117
+ icon={theme.images.general.print}
118
+ iconStyle={{
119
+ width: 25,
120
+ height: 22,
121
+ tintColor: theme.colors.backArrow,
122
+ }}
123
+ borderColor={theme.colors.clear}
124
+ style={styles.icons}
125
+ onClick={() => handleViewSummaryOrder()}
126
+ />
127
+ </>
128
+ )}
124
129
  <OIconButton
125
130
  icon={theme.images.general.map}
126
131
  iconStyle={{