ordering-ui-react-native 0.17.69 → 0.17.71

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +259 -238
  3. package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
  4. package/themes/business/src/components/OrdersOption/index.tsx +4 -5
  5. package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +1 -1
  6. package/themes/business/src/components/PreviousOrders/index.tsx +143 -143
  7. package/themes/business/src/types/index.tsx +6 -3
  8. package/themes/original/src/components/AddressList/index.tsx +7 -3
  9. package/themes/original/src/components/BusinessProductsListing/index.tsx +2 -3
  10. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
  11. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +2 -2
  12. package/themes/original/src/components/Favorite/index.tsx +7 -4
  13. package/themes/original/src/components/Favorite/styles.tsx +1 -1
  14. package/themes/original/src/components/FloatingButton/index.tsx +1 -1
  15. package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
  16. package/themes/original/src/components/Help/index.tsx +7 -7
  17. package/themes/original/src/components/LottieAnimation/index.tsx +16 -7
  18. package/themes/original/src/components/MomentOption/index.tsx +6 -4
  19. package/themes/original/src/components/Notifications/index.tsx +8 -2
  20. package/themes/original/src/components/ProductForm/index.tsx +2 -2
  21. package/themes/original/src/components/ProductOptionSubOption/index.tsx +1 -1
  22. package/themes/original/src/components/Promotions/index.tsx +3 -2
  23. package/themes/original/src/components/UserProfileForm/index.tsx +14 -12
  24. package/themes/original/src/types/index.tsx +1 -0
@@ -297,7 +297,7 @@ export const ProductOptionsUI = (props: any) => {
297
297
  maxProductQuantity === 0 ||
298
298
  Object.keys(errors).length > 0;
299
299
 
300
-
300
+
301
301
  const ExtraOptions = ({ eID, options }: any) => (
302
302
  <>
303
303
  {options.map(({ id, name, respect_to, suboptions }: any) => (
@@ -484,7 +484,7 @@ export const ProductOptionsUI = (props: any) => {
484
484
  <SafeAreaView style={{ flex: 1 }}>
485
485
  <TopHeader>
486
486
  <TopActions onPress={() => handleGoBack()}>
487
- <IconAntDesign name='arrowleft' size={26} />
487
+ <OIcon src={theme.images.general.arrow_left} color={theme.colors.textNormal} />
488
488
  </TopActions>
489
489
  </TopHeader>
490
490
  {!error && (
@@ -68,7 +68,7 @@ export const ProductOptionSubOptionUI = (props: any) => {
68
68
 
69
69
  return (
70
70
  <View>
71
- <Container onPress={() => handleSuboptionClick()}>
71
+ <Container>
72
72
  <IconControl disabled={disabled} onPress={() => handleSuboptionClick()}>
73
73
  {((option?.min === 0 && option?.max === 1) || option?.max > 1) ? (
74
74
  state?.selected ? (
@@ -19,7 +19,7 @@ import { useTheme } from 'styled-components/native';
19
19
  import { OButton, OIcon, OModal, OText } from '../shared'
20
20
  import { Placeholder, PlaceholderLine } from 'rn-placeholder'
21
21
  import { NotFoundSource } from '../NotFoundSource'
22
- import { View, StyleSheet, ScrollView, Platform, RefreshControl } from 'react-native'
22
+ import { View, StyleSheet, ScrollView, RefreshControl } from 'react-native'
23
23
  import { PromotionParams } from '../../types'
24
24
  import { Container } from '../../layouts/Container'
25
25
 
@@ -99,6 +99,7 @@ const PromotionsUI = (props: PromotionParams) => {
99
99
  return (
100
100
  <Container
101
101
  noPadding
102
+ pt={20}
102
103
  refreshControl={
103
104
  <RefreshControl
104
105
  refreshing={refreshing}
@@ -111,7 +112,7 @@ const PromotionsUI = (props: PromotionParams) => {
111
112
  titleAlign={'center'}
112
113
  onActionLeft={() => navigation.goBack()}
113
114
  showCall={false}
114
- style={{ paddingVertical: Platform.OS === 'ios' ? 0 : 20, marginLeft: 20 }}
115
+ style={{ paddingVertical: 0, marginLeft: 20 }}
115
116
  />
116
117
  <PromotionsContainer>
117
118
  <SearchBarContainer>
@@ -284,16 +284,18 @@ const ProfileUI = (props: ProfileParams) => {
284
284
 
285
285
  return (
286
286
  <>
287
- <NavBar
288
- title={t('ACCOUNT', 'Account')}
289
- titleAlign={'center'}
290
- onActionLeft={() => navigation.goBack()}
291
- showCall={false}
292
- style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 30 }}
293
- />
294
- <KeyboardAvoidingView behavior={Platform.OS == 'ios' ? 'padding' : 'height'} enabled style={{ flex: 1, flexDirection: 'column', justifyContent: 'center' }}>
295
- <Container noPadding>
296
-
287
+ <Container
288
+ pt={15}
289
+ noPadding
290
+ >
291
+ <NavBar
292
+ title={t('ACCOUNT', 'Account')}
293
+ titleAlign={'center'}
294
+ onActionLeft={() => navigation.goBack()}
295
+ showCall={false}
296
+ style={{ paddingHorizontal: 40 }}
297
+ />
298
+ <KeyboardAvoidingView behavior={Platform.OS == 'ios' ? 'padding' : 'height'} enabled style={{ flex: 1, flexDirection: 'column', justifyContent: 'center' }}>
297
299
  <CenterView style={styles.pagePadding}>
298
300
  <View style={styles.photo}>
299
301
  {user?.photo ? (
@@ -326,8 +328,8 @@ const ProfileUI = (props: ProfileParams) => {
326
328
  setWillVerifyOtpState={setWillVerifyOtpState}
327
329
  />
328
330
  </View>
329
- </Container>
330
- </KeyboardAvoidingView>
331
+ </KeyboardAvoidingView>
332
+ </Container>
331
333
  <OModal
332
334
  open={isModalVisible}
333
335
  onClose={() => setIsModalVisible(false)}
@@ -249,6 +249,7 @@ export interface BusinessProductsListingParams {
249
249
  handleUpdateProducts?: any;
250
250
  professionalSelected?: any;
251
251
  handleChangeProfessionalSelected?: any;
252
+ onBusinessClick?: any;
252
253
  }
253
254
  export interface BusinessBasicInformationParams {
254
255
  navigation?: any;