@lookiero/checkout 6.4.0 → 6.5.0-beta.1
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/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/ExpoRoot.js +1 -1
- package/dist/src/infrastructure/ui/Root.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/Header.js +3 -6
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +4 -3
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +6 -7
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +11 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +11 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +1 -0
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +9 -9
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +5 -18
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +7 -21
- package/dist/src/infrastructure/ui/views/feedback/Feedback.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.js +1 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +0 -4
- package/dist/src/infrastructure/ui/views/item/Item.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/Item.js +4 -4
- package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +4 -4
- package/dist/src/infrastructure/ui/views/item/Item.style.js +5 -6
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +3 -4
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +1 -0
- package/dist/src/infrastructure/ui/views/return/Return.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/Return.js +0 -1
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/return/Return.style.js +1 -5
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +2 -2
- package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.js +19 -18
- package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +4 -4
- package/dist/src/infrastructure/ui/views/summary/Summary.style.js +7 -8
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.d.ts +13 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +33 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +18 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +21 -0
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.d.ts +2 -14
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +15 -28
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -15
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +1 -16
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +2 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +6 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +10 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +13 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- package/src/ExpoRoot.tsx +1 -1
- package/src/infrastructure/ui/Root.tsx +1 -1
- package/src/infrastructure/ui/components/templates/header/Header.style.ts +4 -3
- package/src/infrastructure/ui/components/templates/header/Header.tsx +7 -11
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +2 -1
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +10 -11
- package/src/infrastructure/ui/{views/summary/components/stickyPricing/StickyPricing.style.ts → components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts} +5 -4
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -1
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +1 -0
- package/src/infrastructure/ui/routing/Routing.tsx +1 -1
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +7 -21
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +13 -22
- package/src/infrastructure/ui/views/feedback/Feedback.style.ts +0 -4
- package/src/infrastructure/ui/views/feedback/Feedback.tsx +2 -2
- package/src/infrastructure/ui/views/item/Item.style.ts +5 -6
- package/src/infrastructure/ui/views/item/Item.tsx +21 -21
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +1 -0
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +11 -13
- package/src/infrastructure/ui/views/return/Return.style.ts +1 -5
- package/src/infrastructure/ui/views/return/Return.tsx +1 -2
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +2 -1
- package/src/infrastructure/ui/views/summary/Summary.style.ts +8 -7
- package/src/infrastructure/ui/views/summary/Summary.tsx +50 -55
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +24 -0
- package/src/infrastructure/ui/views/summary/components/{pricing/Pricing.test.tsx → collapsiblePricing/CollapsiblePricing.test.tsx} +2 -7
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +81 -0
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +1 -16
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +34 -94
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +13 -4
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +6 -2
- package/src/infrastructure/ui/components/layouts/layout/Layout.ts +0 -25
- package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.test.tsx +0 -40
- package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.tsx +0 -9
- package/src/infrastructure/ui/components/layouts/layout/components/footer/__snapshots__/Footer.test.tsx.snap +0 -36
- package/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.ts +0 -21
- package/src/infrastructure/ui/components/layouts/layout/components/header/Header.test.tsx +0 -26
- package/src/infrastructure/ui/components/layouts/layout/components/header/Header.tsx +0 -10
- package/src/infrastructure/ui/components/layouts/layout/components/header/__snapshots__/Header.test.tsx.snap +0 -45
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.ts +0 -15
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.test.tsx +0 -66
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.tsx +0 -45
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/__snapshots__/DummyLayout.test.tsx.snap +0 -1349
- package/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.test.tsx +0 -23
- package/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.tsx +0 -18
- package/src/infrastructure/ui/components/templates/header/defaultHeader/__snapshots__/DefaultHeader.test.tsx.snap +0 -195
- package/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.tsx +0 -46
- /package/src/infrastructure/ui/views/summary/components/{pricing → collapsiblePricing}/__snapshots__/Pricing.test.tsx.snap +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
-
import { Platform,
|
|
2
|
+
import { Platform, View } from "react-native";
|
|
3
3
|
import { generatePath, useMatch, useNavigate } from "react-router-native";
|
|
4
4
|
import { Box, Text, Layout, useDevice, Spinner } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
6
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
7
|
+
import { Sticky } from "@lookiero/sty-psp-ui";
|
|
7
8
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
8
9
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
9
10
|
import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
|
|
@@ -13,13 +14,13 @@ import { useTrackPageView } from "../../../tracking/useTrackPageView";
|
|
|
13
14
|
import { useTrackPressContinue } from "../../../tracking/useTrackPressContinue";
|
|
14
15
|
import { useTrackPressPricing } from "../../../tracking/useTrackPressPricing";
|
|
15
16
|
import { FiveItemsDiscountBanner } from "../../components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner";
|
|
17
|
+
import { Body } from "../../components/layouts/body/Body";
|
|
16
18
|
import { useStaticInfo } from "../../hooks/useStaticInfo";
|
|
17
19
|
import { I18nMessages } from "../../i18n/i18n";
|
|
18
20
|
import { Routes } from "../../routing/routes";
|
|
19
21
|
import { useBasePath } from "../../routing/useBasePath";
|
|
20
22
|
import { style } from "./Summary.style";
|
|
21
|
-
import {
|
|
22
|
-
import { StickyPricing } from "./components/stickyPricing/StickyPricing";
|
|
23
|
+
import { CollapsiblePricing } from "./components/collapsiblePricing/CollapsiblePricing";
|
|
23
24
|
const Summary = ({ layout: LocalLayout, children }) => {
|
|
24
25
|
const { customer: { customerId, country, segment }, } = useStaticInfo();
|
|
25
26
|
const [pricingCollapsed, setPricingCollapsed] = useState(true);
|
|
@@ -78,22 +79,22 @@ const Summary = ({ layout: LocalLayout, children }) => {
|
|
|
78
79
|
if (!dependenciesLoaded) {
|
|
79
80
|
return React.createElement(Spinner, null);
|
|
80
81
|
}
|
|
81
|
-
return (React.createElement(LocalLayout, {
|
|
82
|
-
header: style.header,
|
|
82
|
+
return (React.createElement(LocalLayout, { style: {
|
|
83
83
|
scrollView: style.scrollView,
|
|
84
84
|
} },
|
|
85
|
-
React.createElement(
|
|
86
|
-
|
|
87
|
-
React.createElement(
|
|
88
|
-
React.createElement(
|
|
89
|
-
React.createElement(View, { style:
|
|
90
|
-
React.createElement(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
React.createElement(
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
fiveItemsDiscount !== 0 && React.createElement(FiveItemsDiscountBanner, { fiveItemsDiscount: fiveItemsDiscount }),
|
|
86
|
+
React.createElement(Layout, { fullWidth: !screen.L, style: [screen.L && style.desktopLayoutSpacing, !screen.L && { paddingBottom: pricingHeight }] },
|
|
87
|
+
React.createElement(Box, { size: { L: "2/3" }, style: screen.L && style.desktopListSpacing },
|
|
88
|
+
React.createElement(View, { style: [style.contentWrapper, screen.L && style.desktopContentWrapper] },
|
|
89
|
+
React.createElement(View, { style: !screen.L && style.mobileInfo },
|
|
90
|
+
React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
|
|
91
|
+
React.createElement(Text, { level: 3, style: style.description }, descriptionText)),
|
|
92
|
+
children)),
|
|
93
|
+
pricing && screen.L ? (React.createElement(Box, { size: { L: "1/3" }, style: [style.resume, screen.L ? style.desktopResume : style.mobileResume] },
|
|
94
|
+
React.createElement(View, { style: style.princingWrapper },
|
|
95
|
+
React.createElement(CollapsiblePricing, { collapsed: false, collapsible: false, pricing: pricing, submitButtonText: submitButtonText, totalCheckoutItemsKept: totalCheckoutItemsKept, onSubmit: handleOnSubmit })))) : null),
|
|
96
|
+
pricing && !screen.L ? (React.createElement(Sticky, { style: style.sticky, onLayout: Platform.OS !== "web" ? handleOnPricingLayout : undefined },
|
|
97
|
+
React.createElement(Body, null,
|
|
98
|
+
React.createElement(CollapsiblePricing, { collapsed: pricingCollapsed, pricing: pricing, submitButtonText: submitButtonText, totalCheckoutItemsKept: totalCheckoutItemsKept, onPress: handleOnPressPricing, onSubmit: handleOnSubmit })))) : null));
|
|
98
99
|
};
|
|
99
100
|
export { Summary };
|
|
@@ -21,9 +21,6 @@ declare const style: {
|
|
|
21
21
|
desktopResume: {
|
|
22
22
|
borderRadius: number;
|
|
23
23
|
};
|
|
24
|
-
header: {
|
|
25
|
-
height: number;
|
|
26
|
-
};
|
|
27
24
|
mobileInfo: {
|
|
28
25
|
paddingHorizontal: number;
|
|
29
26
|
paddingTop: number;
|
|
@@ -35,7 +32,10 @@ declare const style: {
|
|
|
35
32
|
resume: any;
|
|
36
33
|
scrollView: {
|
|
37
34
|
backgroundColor: string;
|
|
38
|
-
|
|
35
|
+
};
|
|
36
|
+
sticky: {
|
|
37
|
+
paddingBottom: number;
|
|
38
|
+
paddingTop: number;
|
|
39
39
|
};
|
|
40
40
|
title: {
|
|
41
41
|
marginBottom: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Platform, StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
|
|
4
|
-
const { colorTextMedium, colorText, colorBgPrimaryLight, space2, space4, space6, space12, space16, borderRadius4, colorBgBase, } = theme();
|
|
3
|
+
const { colorTextMedium, colorText, colorBgPrimaryLight, space2, space3, space4, space6, space12, space16, space24, borderRadius4, colorBgBase, } = theme();
|
|
5
4
|
const style = StyleSheet.create({
|
|
6
5
|
contentWrapper: {
|
|
7
6
|
backgroundColor: colorBgBase,
|
|
@@ -9,7 +8,7 @@ const style = StyleSheet.create({
|
|
|
9
8
|
},
|
|
10
9
|
description: {
|
|
11
10
|
color: colorTextMedium,
|
|
12
|
-
marginBottom:
|
|
11
|
+
marginBottom: space6,
|
|
13
12
|
},
|
|
14
13
|
desktopContentWrapper: {
|
|
15
14
|
borderRadius: borderRadius4,
|
|
@@ -25,9 +24,6 @@ const style = StyleSheet.create({
|
|
|
25
24
|
desktopResume: {
|
|
26
25
|
borderRadius: borderRadius4,
|
|
27
26
|
},
|
|
28
|
-
header: {
|
|
29
|
-
height: HEADER_HEIGHT,
|
|
30
|
-
},
|
|
31
27
|
mobileInfo: {
|
|
32
28
|
paddingHorizontal: space6,
|
|
33
29
|
paddingTop: space6,
|
|
@@ -53,7 +49,7 @@ const style = StyleSheet.create({
|
|
|
53
49
|
...Platform.select({
|
|
54
50
|
web: {
|
|
55
51
|
position: "sticky",
|
|
56
|
-
top:
|
|
52
|
+
top: space24,
|
|
57
53
|
alignSelf: "flex-start",
|
|
58
54
|
},
|
|
59
55
|
}),
|
|
@@ -61,7 +57,10 @@ const style = StyleSheet.create({
|
|
|
61
57
|
},
|
|
62
58
|
scrollView: {
|
|
63
59
|
backgroundColor: colorBgPrimaryLight,
|
|
64
|
-
|
|
60
|
+
},
|
|
61
|
+
sticky: {
|
|
62
|
+
paddingBottom: space4,
|
|
63
|
+
paddingTop: space3,
|
|
65
64
|
},
|
|
66
65
|
title: {
|
|
67
66
|
marginBottom: space2,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PricingProjection } from "../../../../../../projection/pricing/pricing";
|
|
3
|
+
interface CollapsiblePricingProps {
|
|
4
|
+
readonly pricing: PricingProjection;
|
|
5
|
+
readonly totalCheckoutItemsKept: number;
|
|
6
|
+
readonly collapsible?: boolean;
|
|
7
|
+
readonly collapsed?: boolean;
|
|
8
|
+
readonly submitButtonText: string;
|
|
9
|
+
readonly onPress?: () => void;
|
|
10
|
+
readonly onSubmit: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const CollapsiblePricing: FC<CollapsiblePricingProps>;
|
|
13
|
+
export { CollapsiblePricing };
|
package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { animated, useSpring } from "@react-spring/native";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Pressable, View } from "react-native";
|
|
4
|
+
import { Button, Icon, Text } from "@lookiero/aurora";
|
|
5
|
+
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
|
+
import { Price } from "../../../../components/atoms/price/Price";
|
|
7
|
+
import { I18nMessages } from "../../../../i18n/i18n";
|
|
8
|
+
import { Pricing } from "../pricing/Pricing";
|
|
9
|
+
import { style } from "./CollapsiblePricing.style";
|
|
10
|
+
const CollapsiblePricing = ({ pricing, totalCheckoutItemsKept, collapsible = true, collapsed = false, submitButtonText, onPress = () => void 0, onSubmit, }) => {
|
|
11
|
+
const { pendingToPay } = pricing;
|
|
12
|
+
const totalText = useI18nMessage({ id: I18nMessages.SUMMARY_TOTAL });
|
|
13
|
+
const totalCheckoutItemsKeptText = useI18nMessage({
|
|
14
|
+
id: I18nMessages.SUMMARY_TOTAL_ITEMS_KEPT,
|
|
15
|
+
values: { items: totalCheckoutItemsKept.toString() },
|
|
16
|
+
});
|
|
17
|
+
const collapsedStyle = useSpring({ opacitiy: collapsed ? 1 : 0 });
|
|
18
|
+
const notCollapsedStyle = useSpring({ opacitiy: collapsed ? 0 : 1 });
|
|
19
|
+
return (React.createElement(React.Fragment, null,
|
|
20
|
+
collapsible && (React.createElement(Pressable, { style: style.iconContainer, testID: "pricing-collapsed", onPress: onPress }, collapsed ? (React.createElement(Icon, { name: "arrow_up_small", testID: "arrow-up" })) : (React.createElement(Icon, { name: "arrow_down_small", testID: "arrow-down" })))),
|
|
21
|
+
collapsed && collapsible ? (React.createElement(animated.View, { style: [style.collapsed, { opacity: collapsedStyle.opacitiy }] },
|
|
22
|
+
React.createElement(View, { style: style.collapsedContent },
|
|
23
|
+
React.createElement(Text, { level: 1, style: style.totalCollapsed, detail: true },
|
|
24
|
+
totalText,
|
|
25
|
+
" ",
|
|
26
|
+
totalCheckoutItemsKeptText),
|
|
27
|
+
React.createElement(Price, { price: pendingToPay, variant: "detail" })),
|
|
28
|
+
React.createElement(View, { style: style.collapsedContent },
|
|
29
|
+
React.createElement(Button, { testID: "confirm-checkout-collpased-button", small: true, onPress: onSubmit }, submitButtonText)))) : (React.createElement(animated.View, { style: { opacity: notCollapsedStyle.opacitiy } },
|
|
30
|
+
React.createElement(Pricing, { pricing: pricing, totalCheckoutItemsKept: totalCheckoutItemsKept }),
|
|
31
|
+
React.createElement(Button, { testID: "confirm-checkout-button", onPress: onSubmit }, submitButtonText)))));
|
|
32
|
+
};
|
|
33
|
+
export { CollapsiblePricing };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const style: {
|
|
2
|
+
collapsed: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
justifyContent: "space-between";
|
|
5
|
+
};
|
|
6
|
+
collapsedContent: {
|
|
7
|
+
flex: number;
|
|
8
|
+
marginBottom: number;
|
|
9
|
+
};
|
|
10
|
+
iconContainer: {
|
|
11
|
+
alignItems: "center";
|
|
12
|
+
marginBottom: number;
|
|
13
|
+
};
|
|
14
|
+
totalCollapsed: {
|
|
15
|
+
marginBottom: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export { style };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
|
+
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
+
const { space1, space3 } = theme();
|
|
4
|
+
const style = StyleSheet.create({
|
|
5
|
+
collapsed: {
|
|
6
|
+
flexDirection: "row",
|
|
7
|
+
justifyContent: "space-between",
|
|
8
|
+
},
|
|
9
|
+
collapsedContent: {
|
|
10
|
+
flex: 1,
|
|
11
|
+
marginBottom: space1,
|
|
12
|
+
},
|
|
13
|
+
iconContainer: {
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
marginBottom: space3,
|
|
16
|
+
},
|
|
17
|
+
totalCollapsed: {
|
|
18
|
+
marginBottom: space1,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
export { style };
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { PriceProjection } from "../../../../../../projection/shared/price";
|
|
2
|
+
import { PricingProjection } from "../../../../../../projection/pricing/pricing";
|
|
4
3
|
interface PricingProps {
|
|
5
|
-
readonly
|
|
6
|
-
readonly subtotal: PriceProjection;
|
|
7
|
-
readonly balanceDiscount?: PriceProjection;
|
|
8
|
-
readonly discount?: PriceProjection;
|
|
9
|
-
readonly discountPercentage?: number;
|
|
4
|
+
readonly pricing: PricingProjection;
|
|
10
5
|
readonly totalCheckoutItemsKept: number;
|
|
11
|
-
readonly service: ServiceProjection;
|
|
12
|
-
readonly collapsible?: boolean;
|
|
13
|
-
readonly collapsed?: boolean;
|
|
14
|
-
readonly busy?: boolean;
|
|
15
|
-
readonly submitButtonText: string;
|
|
16
|
-
readonly onPress?: () => void;
|
|
17
|
-
readonly onSubmit: () => void;
|
|
18
6
|
}
|
|
19
7
|
declare const Pricing: FC<PricingProps>;
|
|
20
8
|
export { Pricing };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { animated, useSpring } from "@react-spring/native";
|
|
2
1
|
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { Text } from "@lookiero/aurora";
|
|
5
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
5
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
7
6
|
import { I18nMessages } from "../../../../i18n/i18n";
|
|
@@ -9,7 +8,8 @@ import { style } from "./Pricing.style";
|
|
|
9
8
|
const Row = ({ action = false, text, level = 3, children }) => (React.createElement(View, { style: style.row },
|
|
10
9
|
React.createElement(Text, { action: action, level: level }, text),
|
|
11
10
|
children));
|
|
12
|
-
const Pricing = ({
|
|
11
|
+
const Pricing = ({ pricing, totalCheckoutItemsKept }) => {
|
|
12
|
+
const { pendingToPay, subtotal, balanceDiscount, discount, discountPercentage = 0, service } = pricing;
|
|
13
13
|
const totalText = useI18nMessage({ id: I18nMessages.SUMMARY_TOTAL });
|
|
14
14
|
const totalCheckoutItemsKeptText = useI18nMessage({
|
|
15
15
|
id: I18nMessages.SUMMARY_TOTAL_ITEMS_KEPT,
|
|
@@ -23,29 +23,16 @@ const Pricing = ({ pendingToPay, subtotal, balanceDiscount, discount, discountPe
|
|
|
23
23
|
});
|
|
24
24
|
const creditText = useI18nMessage({ id: I18nMessages.SUMMARY_CREDIT });
|
|
25
25
|
const feeText = useI18nMessage({ id: I18nMessages.SUMMARY_FEE });
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
React.createElement(View, { style: style.collapsedContent },
|
|
38
|
-
React.createElement(Button, { busy: busy, testID: "confirm-checkout-collpased-button", small: true, onPress: onSubmit }, submitButtonText)))) : (React.createElement(animated.View, { style: { opacity: notCollapsedStyle.opacitiy } },
|
|
39
|
-
React.createElement(Row, { text: `${subtotalText} ${totalCheckoutItemsKeptText}` },
|
|
40
|
-
React.createElement(Price, { price: subtotal, variant: "subtotal" })),
|
|
41
|
-
discount && discount.amount !== 0 && (React.createElement(Row, { text: discountText },
|
|
42
|
-
React.createElement(Price, { price: discount, variant: "subtotal" }))),
|
|
43
|
-
balanceDiscount && balanceDiscount.amount !== 0 && (React.createElement(Row, { text: creditText },
|
|
44
|
-
React.createElement(Price, { price: balanceDiscount, variant: "subtotal" }))),
|
|
45
|
-
React.createElement(Row, { text: feeText }, service.paidWithPromocode ? (React.createElement(Text, { level: 3 }, freeText)) : (React.createElement(Price, { price: service.finalPrice, variant: "subtotal" }))),
|
|
46
|
-
React.createElement(View, { style: style.divider }),
|
|
47
|
-
React.createElement(Row, { level: 2, text: totalText, action: true },
|
|
48
|
-
React.createElement(Price, { price: pendingToPay, variant: "total" })),
|
|
49
|
-
React.createElement(Button, { busy: busy, testID: "confirm-checkout-button", onPress: onSubmit }, submitButtonText)))));
|
|
26
|
+
return (React.createElement(View, null,
|
|
27
|
+
React.createElement(Row, { text: `${subtotalText} ${totalCheckoutItemsKeptText}` },
|
|
28
|
+
React.createElement(Price, { price: subtotal, variant: "subtotal" })),
|
|
29
|
+
discount && discount.amount !== 0 && (React.createElement(Row, { text: discountText },
|
|
30
|
+
React.createElement(Price, { price: discount, variant: "subtotal" }))),
|
|
31
|
+
balanceDiscount && balanceDiscount.amount !== 0 && (React.createElement(Row, { text: creditText },
|
|
32
|
+
React.createElement(Price, { price: balanceDiscount, variant: "subtotal" }))),
|
|
33
|
+
React.createElement(Row, { text: feeText }, service.paidWithPromocode ? (React.createElement(Text, { level: 3 }, freeText)) : (React.createElement(Price, { price: service.finalPrice, variant: "subtotal" }))),
|
|
34
|
+
React.createElement(View, { style: style.divider }),
|
|
35
|
+
React.createElement(Row, { level: 2, text: totalText, action: true },
|
|
36
|
+
React.createElement(Price, { price: pendingToPay, variant: "total" }))));
|
|
50
37
|
};
|
|
51
38
|
export { Pricing };
|
|
@@ -1,28 +1,13 @@
|
|
|
1
1
|
declare const style: {
|
|
2
|
-
collapsed: {
|
|
3
|
-
flexDirection: "row";
|
|
4
|
-
justifyContent: "space-between";
|
|
5
|
-
};
|
|
6
|
-
collapsedContent: {
|
|
7
|
-
flex: number;
|
|
8
|
-
marginBottom: number;
|
|
9
|
-
};
|
|
10
2
|
divider: {
|
|
11
3
|
backgroundColor: string;
|
|
12
4
|
height: number;
|
|
13
5
|
marginBottom: number;
|
|
14
6
|
};
|
|
15
|
-
iconContainer: {
|
|
16
|
-
alignItems: "center";
|
|
17
|
-
marginBottom: number;
|
|
18
|
-
};
|
|
19
7
|
row: {
|
|
20
8
|
flexDirection: "row";
|
|
21
9
|
justifyContent: "space-between";
|
|
22
10
|
marginBottom: number;
|
|
23
11
|
};
|
|
24
|
-
totalCollapsed: {
|
|
25
|
-
marginBottom: number;
|
|
26
|
-
};
|
|
27
12
|
};
|
|
28
13
|
export { style };
|
|
@@ -1,31 +1,16 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
const {
|
|
3
|
+
const { space4, colorBgPrimary } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
-
collapsed: {
|
|
6
|
-
flexDirection: "row",
|
|
7
|
-
justifyContent: "space-between",
|
|
8
|
-
},
|
|
9
|
-
collapsedContent: {
|
|
10
|
-
flex: 1,
|
|
11
|
-
marginBottom: space1,
|
|
12
|
-
},
|
|
13
5
|
divider: {
|
|
14
6
|
backgroundColor: colorBgPrimary,
|
|
15
7
|
height: 1,
|
|
16
8
|
marginBottom: space4,
|
|
17
9
|
},
|
|
18
|
-
iconContainer: {
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
marginBottom: space3,
|
|
21
|
-
},
|
|
22
10
|
row: {
|
|
23
11
|
flexDirection: "row",
|
|
24
12
|
justifyContent: "space-between",
|
|
25
13
|
marginBottom: space4,
|
|
26
14
|
},
|
|
27
|
-
totalCollapsed: {
|
|
28
|
-
marginBottom: space1,
|
|
29
|
-
},
|
|
30
15
|
});
|
|
31
16
|
export { style };
|
package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ interface StickyPricingProps {
|
|
|
5
5
|
readonly pricing: PricingProjection;
|
|
6
6
|
readonly totalCheckoutItemsKept: number;
|
|
7
7
|
readonly collapsed: boolean;
|
|
8
|
-
readonly submitButtonText: string;
|
|
9
8
|
readonly onPress: () => void;
|
|
10
9
|
readonly onSubmit: () => void;
|
|
11
10
|
readonly onLayout?: ({ width, height }: LayoutRectangle) => void;
|
|
@@ -3,7 +3,7 @@ import { Sticky } from "@lookiero/sty-psp-ui";
|
|
|
3
3
|
import { Body } from "../../../../components/layouts/body/Body";
|
|
4
4
|
import { Pricing } from "../pricing/Pricing";
|
|
5
5
|
import { style } from "./StickyPricing.style";
|
|
6
|
-
const StickyPricing = ({ pricing, totalCheckoutItemsKept, collapsed,
|
|
6
|
+
const StickyPricing = ({ pricing, totalCheckoutItemsKept, collapsed, onPress, onSubmit, onLayout, }) => (React.createElement(Sticky, { style: style.sticky, onLayout: onLayout },
|
|
7
7
|
React.createElement(Body, null,
|
|
8
|
-
React.createElement(Pricing, { balanceDiscount: pricing.balanceDiscount, collapsed: collapsed, discount: pricing.discount, discountPercentage: pricing.discountPercentage, pendingToPay: pricing.pendingToPay, service: pricing.service,
|
|
8
|
+
React.createElement(Pricing, { balanceDiscount: pricing.balanceDiscount, collapsed: collapsed, discount: pricing.discount, discountPercentage: pricing.discountPercentage, pendingToPay: pricing.pendingToPay, service: pricing.service, subtotal: pricing.subtotal, totalCheckoutItemsKept: totalCheckoutItemsKept, onPress: onPress, onSubmit: onSubmit }))));
|
|
9
9
|
export { StickyPricing };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Text } from "@lookiero/aurora";
|
|
3
|
+
import { Text, useDevice } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { Tabs } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
@@ -10,6 +10,7 @@ import { style } from "./CheckoutItemsTabs.style";
|
|
|
10
10
|
const CheckoutItem = ({ checkoutItemStatus, checkoutItemProductVariant, checkoutItemPrice, country, testID, style: customStyle, onPress, }) => (React.createElement(View, { testID: testID },
|
|
11
11
|
React.createElement(ProductVariant, { brand: checkoutItemProductVariant.brand, color: checkoutItemProductVariant.color, country: country, media: checkoutItemProductVariant.media, name: checkoutItemProductVariant.name, price: checkoutItemPrice, size: checkoutItemProductVariant.size, status: checkoutItemStatus, style: customStyle, onPress: onPress })));
|
|
12
12
|
const CheckoutItemsTabs = ({ tabIndex, checkoutItemsKept, checkoutItemsReturned, country, onPressItem, onChanged, }) => {
|
|
13
|
+
const { screen } = useDevice();
|
|
13
14
|
const keepTabText = useI18nMessage({ id: I18nMessages.SUMMARY_KEEP_TAB });
|
|
14
15
|
const returnTabText = useI18nMessage({ id: I18nMessages.SUMMARY_RETURN_TAB });
|
|
15
16
|
const keepEmptyText = useI18nMessage({ id: I18nMessages.SUMMARY_KEEP_EMPTY });
|
|
@@ -19,6 +20,9 @@ const CheckoutItemsTabs = ({ tabIndex, checkoutItemsKept, checkoutItemsReturned,
|
|
|
19
20
|
const renderItem = useCallback(({ index }) => index === 0 ? (checkoutItemsKept.length === 0 ? (React.createElement(Text, { style: style.emptyText }, keepEmptyText)) : (React.createElement(React.Fragment, null, checkoutItemsKept.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemStatus: checkoutItem.status, country: country, testID: "keep-checkout-item", checkoutItemProductVariant: checkoutItem.status === CheckoutItemStatus.REPLACED && checkoutItem.replacedFor
|
|
20
21
|
? checkoutItem.replacedFor
|
|
21
22
|
: checkoutItem.productVariant, onPress: () => handleOnPressItem(checkoutItem.id) })))))) : checkoutItemsReturned.length === 0 ? (React.createElement(Text, { style: style.emptyText }, returnEmptyText)) : (React.createElement(React.Fragment, null, checkoutItemsReturned.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemProductVariant: checkoutItem.productVariant, checkoutItemStatus: checkoutItem.status, country: country, testID: "return-checkout-item", onPress: () => handleOnPressItem(checkoutItem.id) }))))), [checkoutItemsKept, checkoutItemsReturned, country, handleOnPressItem, keepEmptyText, returnEmptyText]);
|
|
22
|
-
return (React.createElement(Tabs, { data: data, defaultIndex: tabIndex,
|
|
23
|
+
return (React.createElement(Tabs, { data: data, defaultIndex: tabIndex, tabLabels: [`${keepTabText} (${checkoutItemsKept.length})`, `${returnTabText} (${checkoutItemsReturned.length})`], style: {
|
|
24
|
+
carousel: [style.carousel, screen.L && style.carouselDesktop],
|
|
25
|
+
tabList: { tabList: [style.tabList, screen.L && style.tabListDesktop], tab: { tabText: style.tabText } },
|
|
26
|
+
}, onChanged: onChanged }, renderItem));
|
|
23
27
|
};
|
|
24
28
|
export { CheckoutItemsTabs };
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
declare const style: {
|
|
2
2
|
carousel: {
|
|
3
|
-
|
|
3
|
+
paddingBottom: number;
|
|
4
|
+
paddingHorizontal: number;
|
|
4
5
|
paddingTop: number;
|
|
5
6
|
};
|
|
7
|
+
carouselDesktop: {
|
|
8
|
+
paddingHorizontal: number;
|
|
9
|
+
};
|
|
6
10
|
emptyText: {
|
|
7
11
|
paddingTop: number;
|
|
8
12
|
};
|
|
9
13
|
tabList: {
|
|
10
14
|
borderBottomColor: string;
|
|
11
15
|
borderBottomWidth: number;
|
|
16
|
+
justifyContent: "flex-start";
|
|
17
|
+
paddingHorizontal: number;
|
|
18
|
+
};
|
|
19
|
+
tabListDesktop: {
|
|
20
|
+
paddingHorizontal: number;
|
|
12
21
|
};
|
|
13
22
|
tabText: {
|
|
14
23
|
fontSize: number;
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
const { space2, space4, space6, colorBorderInput,
|
|
3
|
+
const { space2, space4, space6, colorBorderInput, fontDetailSize1, fontDetailHeight1 } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
5
|
carousel: {
|
|
6
|
-
|
|
6
|
+
paddingBottom: space6,
|
|
7
|
+
paddingHorizontal: space6,
|
|
7
8
|
paddingTop: space2,
|
|
8
9
|
},
|
|
10
|
+
carouselDesktop: {
|
|
11
|
+
paddingHorizontal: 0,
|
|
12
|
+
},
|
|
9
13
|
emptyText: {
|
|
10
14
|
paddingTop: space4,
|
|
11
15
|
},
|
|
12
16
|
tabList: {
|
|
13
17
|
borderBottomColor: colorBorderInput,
|
|
14
18
|
borderBottomWidth: 1,
|
|
19
|
+
justifyContent: "flex-start",
|
|
20
|
+
paddingHorizontal: space4,
|
|
21
|
+
},
|
|
22
|
+
tabListDesktop: {
|
|
23
|
+
paddingHorizontal: 0,
|
|
15
24
|
},
|
|
16
25
|
tabText: {
|
|
17
|
-
fontSize:
|
|
18
|
-
lineHeight:
|
|
26
|
+
fontSize: fontDetailSize1,
|
|
27
|
+
lineHeight: fontDetailHeight1,
|
|
19
28
|
},
|
|
20
29
|
});
|
|
21
30
|
export { style };
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.5.0-beta.1";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "6.
|
|
1
|
+
export const VERSION = "6.5.0-beta.1";
|
package/package.json
CHANGED
package/src/ExpoRoot.tsx
CHANGED
|
@@ -12,11 +12,11 @@ import { PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-fro
|
|
|
12
12
|
import { Locale } from "@lookiero/sty-psp-locale";
|
|
13
13
|
import { SentryEnvironment } from "@lookiero/sty-psp-logging";
|
|
14
14
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
15
|
+
import { DummyLayout } from "@lookiero/sty-psp-ui";
|
|
15
16
|
import { KameleoonEnvironment } from "./infrastructure/ab-testing/kameleoonEnvironment";
|
|
16
17
|
// import { bootstrap as checkoutMockBootstrap } from "./infrastructure/delivery/bootstrap.mock";
|
|
17
18
|
import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
|
|
18
19
|
import { root } from "./infrastructure/ui/Root";
|
|
19
|
-
import { DummyLayout } from "./infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout";
|
|
20
20
|
import { fetchTranslations } from "./infrastructure/ui/i18n/fetchTranslations";
|
|
21
21
|
import { translationExternalEndpoint } from "./infrastructure/ui/i18n/translationEndpoint";
|
|
22
22
|
import { Router } from "./infrastructure/ui/routing/router/Router";
|
|
@@ -5,11 +5,11 @@ import { useRoutes as reactRouterUseRoutes } from "react-router-native";
|
|
|
5
5
|
import { I18n } from "@lookiero/i18n-react";
|
|
6
6
|
import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
|
|
7
7
|
import { SentryEnvironment, SentryLoggerFunctionArgs, sentryLogger, sentryLoggerHOC } from "@lookiero/sty-psp-logging";
|
|
8
|
+
import { Layout } from "@lookiero/sty-psp-ui";
|
|
8
9
|
import { Customer } from "../../projection/shared/customer";
|
|
9
10
|
import { Order } from "../../projection/shared/order";
|
|
10
11
|
import { Subscription } from "../../projection/shared/subscription";
|
|
11
12
|
import { KameleoonEnvironment } from "../ab-testing/kameleoonEnvironment";
|
|
12
|
-
import { Layout } from "./components/layouts/layout/Layout";
|
|
13
13
|
import { Routing } from "./routing/Routing";
|
|
14
14
|
|
|
15
15
|
interface RootFunctionArgs {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const { colorBgBase, space2
|
|
4
|
+
const { colorBgBase, space2 } = theme();
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const HEADER_HEIGHT = 48;
|
|
7
7
|
|
|
8
8
|
const style = StyleSheet.create({
|
|
9
9
|
header: {
|
|
@@ -12,6 +12,7 @@ const style = StyleSheet.create({
|
|
|
12
12
|
flexDirection: "row",
|
|
13
13
|
flexGrow: 0,
|
|
14
14
|
flexWrap: "nowrap",
|
|
15
|
+
height: HEADER_HEIGHT,
|
|
15
16
|
justifyContent: "space-between",
|
|
16
17
|
overflow: "visible",
|
|
17
18
|
paddingHorizontal: space2,
|
|
@@ -19,4 +20,4 @@ const style = StyleSheet.create({
|
|
|
19
20
|
},
|
|
20
21
|
});
|
|
21
22
|
|
|
22
|
-
export { style };
|
|
23
|
+
export { style, HEADER_HEIGHT };
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import React, { FC
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { View, ViewProps } from "react-native";
|
|
3
3
|
import { style } from "./Header.style";
|
|
4
4
|
|
|
5
5
|
type HeaderProps = ViewProps;
|
|
6
6
|
|
|
7
|
-
const Header: FC<HeaderProps> = ({ children, style: customStyle, ...props }) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{children}
|
|
13
|
-
</Component>
|
|
14
|
-
);
|
|
15
|
-
};
|
|
7
|
+
const Header: FC<HeaderProps> = ({ children, style: customStyle, ...props }) => (
|
|
8
|
+
<View {...props} style={[style.header, customStyle]}>
|
|
9
|
+
{children}
|
|
10
|
+
</View>
|
|
11
|
+
);
|
|
16
12
|
|
|
17
13
|
export { Header };
|