ordering-ui-react-native 0.12.31 → 0.12.35
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 +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +206 -178
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +344 -334
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +83 -69
- package/themes/business/src/components/OrdersOption/index.tsx +122 -77
- package/themes/business/src/components/OrdersOption/styles.tsx +1 -0
- package/themes/business/src/components/PreviousOrders/index.tsx +124 -73
- package/themes/business/src/components/PreviousOrders/styles.tsx +7 -0
- package/themes/business/src/components/ProductItemAccordion/index.tsx +26 -25
- package/themes/business/src/components/SearchBar/index.tsx +1 -1
- package/themes/business/src/components/StoresList/index.tsx +12 -12
- package/themes/business/src/components/shared/OButton.tsx +0 -1
- package/themes/business/src/components/shared/OIcon.tsx +2 -0
- package/themes/business/src/types/index.tsx +5 -0
- package/themes/single-business/src/components/BusinessBasicInformation/index.tsx +1 -1
- package/themes/single-business/src/components/BusinessProductsListing/index.tsx +9 -8
- package/themes/single-business/src/components/BusinessesListing/index.tsx +307 -296
- package/themes/single-business/src/components/BusinessesListing/styles.tsx +41 -14
- package/themes/single-business/src/components/HelpAccountAndPayment/index.tsx +7 -6
- package/themes/single-business/src/components/HelpGuide/index.tsx +7 -6
- package/themes/single-business/src/components/HelpOrder/index.tsx +7 -6
- package/themes/single-business/src/components/LoginForm/index.tsx +2 -2
- package/themes/single-business/src/components/OrderDetails/index.tsx +7 -7
- package/themes/single-business/src/components/shared/OIconButton.tsx +2 -2
- package/themes/single-business/src/types/index.tsx +2 -0
- package/themes/uber-eats/src/components/AddressList/index.tsx +1 -1
- package/themes/uber-eats/src/components/Messages/index.tsx +4 -4
- package/themes/uber-eats/src/components/shared/OButton.tsx +0 -1
- package/themes/uber-eats/src/components/shared/ODropDown.tsx +3 -2
- package/themes/uber-eats/src/components/shared/OIcon.tsx +3 -2
- package/themes/business/src/assets/fonts/Poppins-Bold.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Light.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Medium.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Regular.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Thin.ttf +0 -0
- package/themes/business/src/assets/icons/Close.png +0 -0
- package/themes/business/src/assets/icons/arrow_down.png +0 -0
- package/themes/business/src/assets/icons/arrow_left.png +0 -0
- package/themes/business/src/assets/icons/arrow_return_left.png +0 -0
- package/themes/business/src/assets/icons/arrow_right.png +0 -0
- package/themes/business/src/assets/icons/arrow_up.png +0 -0
- package/themes/business/src/assets/icons/attach.png +0 -0
- package/themes/business/src/assets/icons/camera.png +0 -0
- package/themes/business/src/assets/icons/cellphone.png +0 -0
- package/themes/business/src/assets/icons/chevron-down.png +0 -0
- package/themes/business/src/assets/icons/docFile.png +0 -0
- package/themes/business/src/assets/icons/drop_down.png +0 -0
- package/themes/business/src/assets/icons/email.png +0 -0
- package/themes/business/src/assets/icons/image-chat.png +0 -0
- package/themes/business/src/assets/icons/imageFile.png +0 -0
- package/themes/business/src/assets/icons/information.png +0 -0
- package/themes/business/src/assets/icons/logout.png +0 -0
- package/themes/business/src/assets/icons/map.png +0 -0
- package/themes/business/src/assets/icons/messages.png +0 -0
- package/themes/business/src/assets/icons/orders.png +0 -0
- package/themes/business/src/assets/icons/password.png +0 -0
- package/themes/business/src/assets/icons/pdfFile.png +0 -0
- package/themes/business/src/assets/icons/phone.png +0 -0
- package/themes/business/src/assets/icons/profile-default-photo.png +0 -0
- package/themes/business/src/assets/icons/profile.png +0 -0
- package/themes/business/src/assets/icons/reload.png +0 -0
- package/themes/business/src/assets/icons/search.png +0 -0
- package/themes/business/src/assets/icons/stores.png +0 -0
- package/themes/business/src/assets/images/background.png +0 -0
- package/themes/business/src/assets/images/dummies/store.png +0 -0
- package/themes/business/src/assets/images/image.png +0 -0
- package/themes/business/src/assets/images/loading-splash.png +0 -0
- package/themes/business/src/assets/images/logo-long.png +0 -0
- package/themes/business/src/assets/images/logo-white.png +0 -0
- package/themes/business/src/assets/images/logo.png +0 -0
- package/themes/business/src/assets/images/logotype-invert.png +0 -0
- package/themes/business/src/assets/images/logotype.png +0 -0
- package/themes/business/src/assets/images/not-found.png +0 -0
- package/themes/business/src/assets/json/order.json +0 -205
- package/themes/business/src/assets/json/orders.json +0 -3592
- package/themes/uber-eats/src/assets/fonts/Poppins-Bold.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Light.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Medium.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Regular.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Thin.ttf +0 -0
- package/themes/uber-eats/src/assets/icons/add-circular-outlined-button.png +0 -0
- package/themes/uber-eats/src/assets/icons/alert.png +0 -0
- package/themes/uber-eats/src/assets/icons/arrow_left.png +0 -0
- package/themes/uber-eats/src/assets/icons/arrow_right.png +0 -0
- package/themes/uber-eats/src/assets/icons/arrow_up.png +0 -0
- package/themes/uber-eats/src/assets/icons/autograph.png +0 -0
- package/themes/uber-eats/src/assets/icons/calendar.png +0 -0
- package/themes/uber-eats/src/assets/icons/camera.png +0 -0
- package/themes/uber-eats/src/assets/icons/canceled.png +0 -0
- package/themes/uber-eats/src/assets/icons/card-delivery.png +0 -0
- package/themes/uber-eats/src/assets/icons/card.png +0 -0
- package/themes/uber-eats/src/assets/icons/cash.png +0 -0
- package/themes/uber-eats/src/assets/icons/cc-stripe.png +0 -0
- package/themes/uber-eats/src/assets/icons/chat.png +0 -0
- package/themes/uber-eats/src/assets/icons/checkmark.png +0 -0
- package/themes/uber-eats/src/assets/icons/close.png +0 -0
- package/themes/uber-eats/src/assets/icons/completed.png +0 -0
- package/themes/uber-eats/src/assets/icons/credit-card.png +0 -0
- package/themes/uber-eats/src/assets/icons/delete.png +0 -0
- package/themes/uber-eats/src/assets/icons/drop_down.png +0 -0
- package/themes/uber-eats/src/assets/icons/group.png +0 -0
- package/themes/uber-eats/src/assets/icons/help.png +0 -0
- package/themes/uber-eats/src/assets/icons/home.png +0 -0
- package/themes/uber-eats/src/assets/icons/ic_email.png +0 -0
- package/themes/uber-eats/src/assets/icons/ic_lock.png +0 -0
- package/themes/uber-eats/src/assets/icons/image.png +0 -0
- package/themes/uber-eats/src/assets/icons/inprogress.png +0 -0
- package/themes/uber-eats/src/assets/icons/lunch.png +0 -0
- package/themes/uber-eats/src/assets/icons/mail.png +0 -0
- package/themes/uber-eats/src/assets/icons/map.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-help.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-logout.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-orders.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-user.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu.png +0 -0
- package/themes/uber-eats/src/assets/icons/paypal.png +0 -0
- package/themes/uber-eats/src/assets/icons/paypal2.png +0 -0
- package/themes/uber-eats/src/assets/icons/pending.png +0 -0
- package/themes/uber-eats/src/assets/icons/phone.png +0 -0
- package/themes/uber-eats/src/assets/icons/pin_outline.png +0 -0
- package/themes/uber-eats/src/assets/icons/send.png +0 -0
- package/themes/uber-eats/src/assets/icons/speech-bubble.png +0 -0
- package/themes/uber-eats/src/assets/icons/stripe-s.png +0 -0
- package/themes/uber-eats/src/assets/icons/stripe-sb.png +0 -0
- package/themes/uber-eats/src/assets/icons/stripe.png +0 -0
- package/themes/uber-eats/src/assets/icons/trash.png +0 -0
- package/themes/uber-eats/src/assets/icons/upload.png +0 -0
- package/themes/uber-eats/src/assets/icons/wallet.png +0 -0
- package/themes/uber-eats/src/assets/images/business.png +0 -0
- package/themes/uber-eats/src/assets/images/categories/category-all.png +0 -0
- package/themes/uber-eats/src/assets/images/dummies/product.png +0 -0
- package/themes/uber-eats/src/assets/images/dummies/store.png +0 -0
- package/themes/uber-eats/src/assets/images/empty-active-orders.png +0 -0
- package/themes/uber-eats/src/assets/images/empty-past-orders.png +0 -0
- package/themes/uber-eats/src/assets/images/home-hero.png +0 -0
- package/themes/uber-eats/src/assets/images/image.png +0 -0
- package/themes/uber-eats/src/assets/images/logo-long.png +0 -0
- package/themes/uber-eats/src/assets/images/logo-white.png +0 -0
- package/themes/uber-eats/src/assets/images/logo.png +0 -0
- package/themes/uber-eats/src/assets/images/logotype-invert.png +0 -0
- package/themes/uber-eats/src/assets/images/logotype.png +0 -0
- package/themes/uber-eats/src/assets/images/marker.png +0 -0
- package/themes/uber-eats/src/assets/images/not-found.png +0 -0
- package/themes/uber-eats/src/assets/images/paper-plane.png +0 -0
- package/themes/uber-eats/src/assets/images/slide1.png +0 -0
- package/themes/uber-eats/src/assets/images/slide2.png +0 -0
- package/themes/uber-eats/src/assets/images/slide3.png +0 -0
- package/themes/uber-eats/src/assets/images/slide4.png +0 -0
- package/themes/uber-eats/src/assets/images/slide5.png +0 -0
- package/themes/uber-eats/src/assets/images/slide6.png +0 -0
- package/themes/uber-eats/src/assets/images/status-0.png +0 -0
- package/themes/uber-eats/src/assets/images/status-1.png +0 -0
- package/themes/uber-eats/src/assets/images/status-10.png +0 -0
- package/themes/uber-eats/src/assets/images/status-11.png +0 -0
- package/themes/uber-eats/src/assets/images/status-12.png +0 -0
- package/themes/uber-eats/src/assets/images/status-13.png +0 -0
- package/themes/uber-eats/src/assets/images/status-14.png +0 -0
- package/themes/uber-eats/src/assets/images/status-15.png +0 -0
- package/themes/uber-eats/src/assets/images/status-16.png +0 -0
- package/themes/uber-eats/src/assets/images/status-17.png +0 -0
- package/themes/uber-eats/src/assets/images/status-18.png +0 -0
- package/themes/uber-eats/src/assets/images/status-19.png +0 -0
- package/themes/uber-eats/src/assets/images/status-2.png +0 -0
- package/themes/uber-eats/src/assets/images/status-20.png +0 -0
- package/themes/uber-eats/src/assets/images/status-21.png +0 -0
- package/themes/uber-eats/src/assets/images/status-3.png +0 -0
- package/themes/uber-eats/src/assets/images/status-4.png +0 -0
- package/themes/uber-eats/src/assets/images/status-5.png +0 -0
- package/themes/uber-eats/src/assets/images/status-6.png +0 -0
- package/themes/uber-eats/src/assets/images/status-7.png +0 -0
- package/themes/uber-eats/src/assets/images/status-8.png +0 -0
- package/themes/uber-eats/src/assets/images/status-9.png +0 -0
- package/themes/uber-eats/src/assets/images/store.png +0 -0
- package/themes/uber-eats/src/assets/json/order.json +0 -205
- package/themes/uber-eats/src/assets/json/orders.json +0 -3592
|
@@ -19,22 +19,19 @@ export const Search = styled.View`
|
|
|
19
19
|
|
|
20
20
|
export const AddressInput = styled.TouchableOpacity`
|
|
21
21
|
flex-direction: row;
|
|
22
|
-
background-color: ${(props: any) => props.theme.colors.white};
|
|
23
|
-
border-radius: 22px;
|
|
24
|
-
padding-horizontal: 20px;
|
|
25
22
|
align-items: center;
|
|
26
|
-
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
background-color: white;
|
|
25
|
+
padding-horizontal: 15px;
|
|
26
|
+
border-radius: 24px;
|
|
27
27
|
height: 44px;
|
|
28
|
-
|
|
28
|
+
min-height: 44px;
|
|
29
29
|
`
|
|
30
30
|
|
|
31
31
|
export const OrderControlContainer = styled.View`
|
|
32
32
|
width: 100%;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: space-between;
|
|
36
33
|
z-index: 10;
|
|
37
|
-
padding-
|
|
34
|
+
padding-top: 20px;
|
|
38
35
|
flex: 1;
|
|
39
36
|
`
|
|
40
37
|
|
|
@@ -53,8 +50,8 @@ export const WrapMomentOption = styled.TouchableOpacity`
|
|
|
53
50
|
|
|
54
51
|
export const HeaderWrapper = styled.ImageBackground`
|
|
55
52
|
width: 100%;
|
|
56
|
-
height:
|
|
57
|
-
padding:
|
|
53
|
+
height: 200px;
|
|
54
|
+
padding: 0px 40px 20px;
|
|
58
55
|
background-color: transparent;
|
|
59
56
|
`;
|
|
60
57
|
|
|
@@ -65,6 +62,36 @@ export const ListWrapper = styled.View`
|
|
|
65
62
|
|
|
66
63
|
export const FeaturedWrapper = styled.View`
|
|
67
64
|
background-color: ${(props: any) => props.theme.colors.backgroundLight};
|
|
68
|
-
height: 220px;
|
|
69
|
-
paddingVertical:
|
|
70
|
-
`;
|
|
65
|
+
max-height: 220px;
|
|
66
|
+
paddingVertical: 20px;
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
export const TopHeader = styled.View`
|
|
70
|
+
position: absolute;
|
|
71
|
+
flex-direction: row;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
height: 34px;
|
|
76
|
+
min-height: 34px;
|
|
77
|
+
`
|
|
78
|
+
|
|
79
|
+
export const DropOptionButton = styled.TouchableOpacity`
|
|
80
|
+
background-color: ${(props: any) => props.theme.colors.backgroundGray100};
|
|
81
|
+
border-radius: 7.6px;
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
max-width: 240px;
|
|
84
|
+
height: 26px;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
padding-horizontal: 8px;
|
|
88
|
+
flex-direction: row;
|
|
89
|
+
margin-end: 12px;
|
|
90
|
+
`
|
|
91
|
+
|
|
92
|
+
export const WrapSearchBar = styled.View`
|
|
93
|
+
padding: 10px 30px;
|
|
94
|
+
margin-bottom: 10px;
|
|
95
|
+
background-color: ${(props: any) => props.theme.colors.white};
|
|
96
|
+
flex: 1;
|
|
97
|
+
`
|
|
@@ -8,6 +8,7 @@ import { StyleSheet } from 'react-native'
|
|
|
8
8
|
import {
|
|
9
9
|
Content
|
|
10
10
|
} from './styles'
|
|
11
|
+
import NavBar from '../NavBar'
|
|
11
12
|
|
|
12
13
|
export const HelpAccountAndPayment = (props: HelpParams) => {
|
|
13
14
|
const {
|
|
@@ -37,11 +38,11 @@ export const HelpAccountAndPayment = (props: HelpParams) => {
|
|
|
37
38
|
|
|
38
39
|
return (
|
|
39
40
|
<>
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
<NavBar
|
|
42
|
+
style={{ paddingBottom: 0, marginLeft:-20, backgroundColor: 'transparent' }}
|
|
43
|
+
btnStyle={{ backgroundColor: 'transparent' }}
|
|
44
|
+
leftImageStyle={{ tintColor: theme.colors.textThird }}
|
|
45
|
+
onActionLeft={() => goToBack()}
|
|
45
46
|
/>
|
|
46
47
|
<OText size={22} weight={600}>{t('ACCOUNT_PAYMENT_OPTIONS', 'Account and Payment Options')}</OText>
|
|
47
48
|
<Content>
|
|
@@ -65,4 +66,4 @@ export const HelpAccountAndPayment = (props: HelpParams) => {
|
|
|
65
66
|
</Content>
|
|
66
67
|
</>
|
|
67
68
|
)
|
|
68
|
-
}
|
|
69
|
+
}
|
|
@@ -7,6 +7,7 @@ import { StyleSheet } from 'react-native'
|
|
|
7
7
|
import {
|
|
8
8
|
Content
|
|
9
9
|
} from './styles'
|
|
10
|
+
import NavBar from '../NavBar'
|
|
10
11
|
|
|
11
12
|
export const HelpGuide = (props: HelpParams) => {
|
|
12
13
|
const {
|
|
@@ -36,11 +37,11 @@ export const HelpGuide = (props: HelpParams) => {
|
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
39
|
<>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
<NavBar
|
|
41
|
+
style={{ paddingBottom: 0, marginLeft:-20, backgroundColor: 'transparent' }}
|
|
42
|
+
btnStyle={{ backgroundColor: 'transparent' }}
|
|
43
|
+
leftImageStyle={{ tintColor: theme.colors.textThird }}
|
|
44
|
+
onActionLeft={() => goToBack()}
|
|
44
45
|
/>
|
|
45
46
|
<OText size={22} weight={600}>{t('GUIDE_TO_ORDERING', 'Guide to Ordering')}</OText>
|
|
46
47
|
<Content>
|
|
@@ -64,4 +65,4 @@ export const HelpGuide = (props: HelpParams) => {
|
|
|
64
65
|
</Content>
|
|
65
66
|
</>
|
|
66
67
|
)
|
|
67
|
-
}
|
|
68
|
+
}
|
|
@@ -9,6 +9,7 @@ import { WebView } from 'react-native-webview'
|
|
|
9
9
|
import {
|
|
10
10
|
Content
|
|
11
11
|
} from './styles'
|
|
12
|
+
import NavBar from '../NavBar'
|
|
12
13
|
|
|
13
14
|
export const HelpOrder = (props: HelpParams) => {
|
|
14
15
|
const {
|
|
@@ -41,11 +42,11 @@ export const HelpOrder = (props: HelpParams) => {
|
|
|
41
42
|
|
|
42
43
|
return (
|
|
43
44
|
<>
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
<NavBar
|
|
46
|
+
style={{ paddingBottom: 0, marginLeft:-20, backgroundColor: 'transparent' }}
|
|
47
|
+
btnStyle={{ backgroundColor: 'transparent' }}
|
|
48
|
+
leftImageStyle={{ tintColor: theme.colors.textThird }}
|
|
49
|
+
onActionLeft={() => goToBack()}
|
|
49
50
|
/>
|
|
50
51
|
<OText size={22} weight={600}>{t('HELP_WITH_ORDER', 'Help with an order')}</OText>
|
|
51
52
|
<Content>
|
|
@@ -76,4 +77,4 @@ export const HelpOrder = (props: HelpParams) => {
|
|
|
76
77
|
</Content>
|
|
77
78
|
</>
|
|
78
79
|
)
|
|
79
|
-
}
|
|
80
|
+
}
|
|
@@ -534,7 +534,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
534
534
|
handleLoading={(val: boolean) => setIsFBLoading(val)}
|
|
535
535
|
handleSuccessFacebookLogin={handleSuccessFacebook}
|
|
536
536
|
/>
|
|
537
|
-
<GoogleLogin
|
|
537
|
+
{/* <GoogleLogin
|
|
538
538
|
handleErrors={(err: any) => showToast(ToastType.Error, err)}
|
|
539
539
|
handleLoading={(val: boolean) => setIsFBLoading(val)}
|
|
540
540
|
handleSuccessFacebookLogin={handleSuccessFacebook}
|
|
@@ -543,7 +543,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
543
543
|
handleErrors={(err: any) => showToast(ToastType.Error, err)}
|
|
544
544
|
handleLoading={(val: boolean) => setIsFBLoading(val)}
|
|
545
545
|
handleSuccessFacebookLogin={handleSuccessFacebook}
|
|
546
|
-
/>
|
|
546
|
+
/> */}
|
|
547
547
|
</SocialButtons>
|
|
548
548
|
</ButtonsWrapper>
|
|
549
549
|
</>
|
|
@@ -43,6 +43,7 @@ import { OrderDetailsParams } from '../../types';
|
|
|
43
43
|
import { USER_TYPE } from '../../config/constants';
|
|
44
44
|
import { GoogleMap } from '../GoogleMap';
|
|
45
45
|
import { verifyDecimals } from '../../utils';
|
|
46
|
+
import NavBar from '../NavBar';
|
|
46
47
|
|
|
47
48
|
export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
48
49
|
const {
|
|
@@ -375,13 +376,12 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
375
376
|
{order && Object.keys(order).length > 0 && (
|
|
376
377
|
<>
|
|
377
378
|
<Header>
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
/>
|
|
379
|
+
<NavBar
|
|
380
|
+
style={{ paddingBottom: 0, marginLeft: -20, backgroundColor: 'transparent' }}
|
|
381
|
+
btnStyle={{ backgroundColor: 'transparent' }}
|
|
382
|
+
leftImageStyle={{ tintColor: theme.colors.textThird }}
|
|
383
|
+
onActionLeft={() => handleArrowBack()}
|
|
384
|
+
/>
|
|
385
385
|
<OrderInfo>
|
|
386
386
|
<OrderData>
|
|
387
387
|
<OText
|
|
@@ -160,6 +160,7 @@ export interface BusinessProductsListingParams {
|
|
|
160
160
|
categorySelected: any;
|
|
161
161
|
handleSearchRedirect: any;
|
|
162
162
|
errorQuantityProducts?: boolean;
|
|
163
|
+
isFranchiseApp?: boolean;
|
|
163
164
|
header?: any;
|
|
164
165
|
logo?: any;
|
|
165
166
|
getNextProducts?: any;
|
|
@@ -173,6 +174,7 @@ export interface BusinessBasicInformationParams {
|
|
|
173
174
|
businessState?: any;
|
|
174
175
|
openBusinessInformation?: any;
|
|
175
176
|
isBusinessInfoShow?: boolean;
|
|
177
|
+
isFranchiseApp?: boolean;
|
|
176
178
|
header?: any;
|
|
177
179
|
logo?: any;
|
|
178
180
|
}
|
|
@@ -11,7 +11,6 @@ import { NotFoundSource } from '../NotFoundSource'
|
|
|
11
11
|
import NavBar from '../NavBar'
|
|
12
12
|
import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder'
|
|
13
13
|
|
|
14
|
-
const addIcon = require('../../assets/icons/add-circular-outlined-button.png')
|
|
15
14
|
|
|
16
15
|
const AddressListUI = (props: AddressListParams) => {
|
|
17
16
|
const {
|
|
@@ -32,6 +31,7 @@ const AddressListUI = (props: AddressListParams) => {
|
|
|
32
31
|
} = props
|
|
33
32
|
|
|
34
33
|
const theme = useTheme()
|
|
34
|
+
const addIcon = theme.general?.images?.addCircularOutlined
|
|
35
35
|
|
|
36
36
|
const styles = StyleSheet.create({
|
|
37
37
|
address: {
|
|
@@ -10,9 +10,6 @@ import { TouchableOpacity, ActivityIndicator, StyleSheet, View, Platform, Keyboa
|
|
|
10
10
|
import { Header, TitleHeader, Wrapper, QuickMessageContainer } from './styles'
|
|
11
11
|
import { MessagesParams } from '../../types'
|
|
12
12
|
|
|
13
|
-
const ImageDummy = require('../../assets/images/image.png')
|
|
14
|
-
const paperIcon = require('../../assets/images/paper-plane.png')
|
|
15
|
-
|
|
16
13
|
const ORDER_STATUS: any = {
|
|
17
14
|
0: 'ORDER_STATUS_PENDING',
|
|
18
15
|
1: 'ORDERS_COMPLETED',
|
|
@@ -61,8 +58,11 @@ const MessagesUI = (props: MessagesParams) => {
|
|
|
61
58
|
const [formattedMessages, setFormattedMessages] = useState<Array<any>>([])
|
|
62
59
|
const [isKeyboardShow, setIsKeyboardShow] = useState(false)
|
|
63
60
|
const previousStatus = [1, 2, 5, 6, 10, 11, 12, 16, 17]
|
|
64
|
-
const chatDisabled = previousStatus.includes(order?.status)
|
|
65
61
|
|
|
62
|
+
const ImageDummy = theme.images?.general?.ImageDummy
|
|
63
|
+
const paperIcon = theme?.images?.general?.paperIcon
|
|
64
|
+
|
|
65
|
+
const chatDisabled = previousStatus.includes(order?.status)
|
|
66
66
|
const quickMessageList = [
|
|
67
67
|
{ key: 'customer_message_1', text: t('CUSTOMER_MESSAGE_1', 'customer_message_1') },
|
|
68
68
|
{ key: 'customer_message_2', text: t('CUSTOMER_MESSAGE_2', 'customer_message_2') },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import styled, { css } from 'styled-components/native'
|
|
2
|
+
import styled, { css, useTheme } from 'styled-components/native'
|
|
3
3
|
import { ScrollView, TouchableOpacity } from 'react-native-gesture-handler'
|
|
4
4
|
import {
|
|
5
5
|
ScrollView as CustomScrollView,
|
|
@@ -76,6 +76,7 @@ const ODropDown = (props: Props) => {
|
|
|
76
76
|
isModal
|
|
77
77
|
} = props
|
|
78
78
|
|
|
79
|
+
const theme = useTheme()
|
|
79
80
|
const [isOpen, setIsOpen] = useState(false)
|
|
80
81
|
const defaultOption = options?.find((option: any) => option.value === defaultValue)
|
|
81
82
|
const [selectedOption, setSelectedOption] = useState<any>(defaultOption)
|
|
@@ -114,7 +115,7 @@ const ODropDown = (props: Props) => {
|
|
|
114
115
|
<DropIcon
|
|
115
116
|
textcolor={props.textcolor}
|
|
116
117
|
secondary={secondary}
|
|
117
|
-
source={
|
|
118
|
+
source={theme.images.general.dropDown}
|
|
118
119
|
/>
|
|
119
120
|
</Selected>
|
|
120
121
|
{isOpen && options && (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
import { ImageStyle } from 'react-native'
|
|
4
|
-
import styled from 'styled-components/native'
|
|
4
|
+
import styled, { useTheme } from 'styled-components/native'
|
|
5
5
|
|
|
6
6
|
const Wrapper = styled.View``
|
|
7
7
|
|
|
@@ -23,10 +23,11 @@ interface Props {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
const OImage = (props: Props): React.ReactElement => {
|
|
26
|
+
const theme = useTheme()
|
|
26
27
|
return (
|
|
27
28
|
<Wrapper style={{ borderRadius: props.style?.borderRadius, overflow: 'hidden', marginHorizontal: props.style?.marginHorizontal }}>
|
|
28
29
|
<SImage
|
|
29
|
-
source={props.src ? props.src : props.url ? { uri: props.url } : props.dummy ? props.dummy :
|
|
30
|
+
source={props.src ? props.src : props.url ? { uri: props.url } : props.dummy ? props.dummy : theme.images.general.lunch}
|
|
30
31
|
style={{
|
|
31
32
|
tintColor: props.color,
|
|
32
33
|
flex: props.isWrap ? 1 : 0,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|