ordering-ui-react-native 0.21.84 → 0.21.86

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.21.84",
3
+ "version": "0.21.86",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -156,6 +156,7 @@ export const PaymentOptionsWebView = (props: PaymentOptionsWebViewParams) => {
156
156
  user_id: user?.id,
157
157
  user_name: user?.name
158
158
  },
159
+ xappx: ordering?.appId,
159
160
  currency: configs?.stripe_currency?.value || currency,
160
161
  userToken: token,
161
162
  clientId: webviewPaymethod?.credentials?.client_id,
@@ -47,7 +47,7 @@ const ProfileUI = (props: ProfileParams) => {
47
47
  cleanFormState,
48
48
  handleToggleAvalaibleStatusDriver,
49
49
  isAlsea,
50
- isHideDriverStatus,
50
+ isShowDriverStatus,
51
51
  navigation
52
52
  } = props;
53
53
 
@@ -370,13 +370,13 @@ const ProfileUI = (props: ProfileParams) => {
370
370
  adjustsFontSizeToFit
371
371
  style={{ ...styles.label, paddingHorizontal: 0 }}>
372
372
  {t(
373
- `${isHideDriverStatus ? 'NOT_' : ''}AVAILABLE_TO_RECEIVE_ORDERS`,
374
- `${isHideDriverStatus ? 'You are not ' : ''}Available to receive orders`
373
+ `${!isShowDriverStatus ? 'NOT_' : ''}AVAILABLE_TO_RECEIVE_ORDERS`,
374
+ `${!isShowDriverStatus ? 'You are not ' : ''}Available to receive orders`
375
375
  )}
376
376
  </OText>
377
377
  </View>
378
378
 
379
- {!isHideDriverStatus && (
379
+ {isShowDriverStatus && (
380
380
  <>
381
381
  {userState.loadingDriver ? (
382
382
  <ActivityIndicator size="small" color={theme.colors.primary} />
@@ -57,7 +57,7 @@ export interface ProfileParams {
57
57
  showField?: any;
58
58
  isRequiredField?: any;
59
59
  isAlsea?: boolean;
60
- isHideDriverStatus?: boolean;
60
+ isShowDriverStatus?: boolean;
61
61
  isFocused?: boolean;
62
62
  }
63
63