ordering-ui-react-native 0.11.30 → 0.11.31

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.11.30",
3
+ "version": "0.11.31",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -74,7 +74,7 @@ const BusinessMenu = (props:any): React.ReactElement => {
74
74
  <Container nopadding nestedScrollEnabled>
75
75
  <View style={{ paddingTop: 20 }}>
76
76
  <NavBar
77
- title={t('MENU', 'Menu')}
77
+ title={t('MENU_V21', 'Menu')}
78
78
  onActionLeft={goToBack}
79
79
  includeOrderTypeSelector
80
80
  rightComponent={cart && (
@@ -90,7 +90,7 @@ const CategoriesMenu = (props: any): React.ReactElement => {
90
90
  <Container nopadding nestedScrollEnabled>
91
91
  <View style={{ paddingTop: 20 }}>
92
92
  <NavBar
93
- title={t('CATEGORY', 'Category')}
93
+ title={t('CATEGORY_X_ID', 'Category')}
94
94
  onActionLeft={goToBack}
95
95
  rightComponent={cart && (
96
96
  <TouchableOpacity
@@ -110,13 +110,13 @@ const CustomerName = (props: Props): React.ReactElement => {
110
110
  name="name"
111
111
  rules={{
112
112
  required: t(
113
- 'VALIDATION_ERROR_CUSTOMER_NAME_REQUIRED',
113
+ 'VALIDATION_ERROR_REQUIRED',
114
114
  'The field Customer Name is required',
115
- ).replace('_attribute_', t('CUSTOMER_NAME', 'Customer Name')),
115
+ ).replace('_attribute_', t('REQUEST_COLLECTION_CUSTOMER_NAME', 'Customer Name')),
116
116
  pattern: {
117
117
  value: /^[a-zA-Z áéíóúüñçÁÉÍÓÚÜÑÇ]+$/i,
118
118
  message: t(
119
- 'INVALID_ERROR_NAME',
119
+ 'INVALID_ERROR',
120
120
  'Invalid name',
121
121
  ).replace('_attribute_', t('NAME', 'Name')),
122
122
  }
@@ -160,7 +160,7 @@ const PaymentOptionsUI = (props: any) => {
160
160
  ),
161
161
  bgImage: theme.images.general.carddelivery,
162
162
  icon: theme.images.general.pushPin,
163
- callToActionText: t("LET'S GO", "Let's go"),
163
+ callToActionText: t("LETS_GO", "Let's go"),
164
164
  onClick: () => onSelectPaymethod(supportedMethods[cardOnDeliveryIndex], false),
165
165
  ...supportedMethods[cardOnDeliveryIndex],
166
166
  }