ordering-ui-react-native 0.12.84 → 0.12.88

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.
@@ -3,6 +3,7 @@ import styled, { css } from 'styled-components/native'
3
3
  export const WrapHeader = styled.View`
4
4
  position: relative;
5
5
  z-index: 1;
6
+ margin-bottom: 20px;
6
7
  `
7
8
 
8
9
  export const TopHeader = styled.View`
@@ -26,11 +27,8 @@ export const ProductHeader = styled.ImageBackground`
26
27
  `
27
28
 
28
29
  export const WrapContent = styled.View`
29
- padding: 26px 40px;
30
- position: relative;
31
- bottom: 20px;
32
- background-color: white;
33
- z-index: 100;
30
+ padding: 0 40px;
31
+ background-color: #FFF;
34
32
  `
35
33
 
36
34
  export const ProductTitle = styled.View`
@@ -39,7 +37,7 @@ export const ProductTitle = styled.View`
39
37
  `
40
38
 
41
39
  export const ProductDescription = styled.View`
42
- margin-bottom: 30px;
40
+ margin-bottom: 10px;
43
41
  `
44
42
 
45
43
  export const ProductEditions = styled.View`
@@ -4,7 +4,6 @@ import { OInput, OButton } from '../shared'
4
4
  import { useLanguage } from 'ordering-components/native'
5
5
  import { useTheme } from 'styled-components/native';
6
6
  import Icon from 'react-native-vector-icons/Feather'
7
- import { useEffect } from 'hoist-non-react-statics/node_modules/@types/react';
8
7
 
9
8
  export const SearchBar = (props: any) => {
10
9
  const {
@@ -31,8 +30,6 @@ export const SearchBar = (props: any) => {
31
30
  padding: 1,
32
31
  maxHeight: 47,
33
32
  height: 47,
34
- borderBottomColor: theme.colors.border,
35
- borderBottomWidth: 1,
36
33
  },
37
34
  borderStyle: {
38
35
  borderColor: theme.colors.primary,
@@ -74,16 +71,15 @@ export const SearchBar = (props: any) => {
74
71
  }
75
72
 
76
73
  return (
77
- <View style={[styles.container, { height: height }]}>
74
+ <View style={[styles.container]}>
78
75
  <OInput
79
76
  value={searchValue}
80
77
  onChange={onChangeSearch}
81
- style={styles.inputStyle}
78
+ style={{ ...styles.inputStyle, ...inputStyle }}
82
79
  placeholder={placeholder}
83
80
  icon={theme.images.general.search}
84
81
  iconStyle={{ width: 17 }}
85
82
  returnKeyType='done'
86
- inputStyle={inputStyle}
87
83
  />
88
84
  {isCancelButtonShow && (
89
85
  <OButton
@@ -161,6 +161,7 @@ export interface BusinessProductsListingParams {
161
161
  categorySelected: any;
162
162
  handleSearchRedirect: any;
163
163
  errorQuantityProducts?: boolean;
164
+ isSingleBusiness?: boolean;
164
165
  isFranchiseApp?: boolean;
165
166
  header?: any;
166
167
  logo?: any;
@@ -207,6 +208,7 @@ export interface BusinessProductsListParams {
207
208
  handleClearSearch?: (value: any) => {};
208
209
  isBusinessLoading?: any,
209
210
  errorQuantityProducts?: boolean,
211
+ isSingleBusiness?: boolean,
210
212
  handleCancelSearch?: () => void
211
213
  categoriesLayout?: any
212
214
  setCategoriesLayout?: any
@@ -227,6 +229,7 @@ export interface BusinessInformationParams {
227
229
  export interface BusinessReviewsParams {
228
230
  businessState: { business: any, loading: boolean, error: null };
229
231
  reviewsList: { reviews: any, loading: boolean, error: null };
232
+ handleChangeSearch?: any;
230
233
  }
231
234
  export interface SearchBarParams {
232
235
  searchValue?: any;