@@ -8,21 +8,26 @@ import { CheckoutProvider } from '@components/frontStore/checkout/CheckoutContex
88import { ContactInformation } from '@components/frontStore/checkout/ContactInformation.js' ;
99import { Payment } from '@components/frontStore/checkout/Payment.js' ;
1010import { Shipment } from '@components/frontStore/checkout/Shipment.js' ;
11+ import { ShippingNote } from '@components/frontStore/checkout/ShippingNote.js' ;
12+ import { _ } from '@evershop/evershop/lib/locale/translate/_' ;
1113import React from 'react' ;
12- import './Checkout.scss' ;
1314import { useForm } from 'react-hook-form' ;
14- import { _ } from '@evershop/evershop/lib/locale/translate/_ ';
15+ import './Checkout.scss ';
1516
1617interface CheckoutPageProps {
1718 placeOrderApi : string ;
1819 getPaymentMethodApi : string ;
1920 getShippingMethodApi : string ;
2021 checkoutSuccessUrl : string ;
22+ setting : {
23+ showShippingNote : boolean ;
24+ } ;
2125}
2226
2327export default function CheckoutPage ( {
2428 placeOrderApi,
25- checkoutSuccessUrl
29+ checkoutSuccessUrl,
30+ setting : { showShippingNote }
2631} : CheckoutPageProps ) {
2732 const [ disabled , setDisabled ] = React . useState ( false ) ;
2833 const form = useForm ( {
@@ -54,6 +59,7 @@ export default function CheckoutPage({
5459 < Area id = "checkoutFormAfter" noOuter />
5560 </ Form >
5661 < div >
62+ { showShippingNote && < ShippingNote /> }
5763 < CartItems >
5864 { ( { items, loading, showPriceIncludingTax } ) => (
5965 < CartSummaryItemsList
@@ -79,5 +85,8 @@ export const query = `
7985 query Query {
8086 placeOrderApi: url(routeId: "createOrder")
8187 checkoutSuccessUrl: url(routeId: "checkoutSuccess")
88+ setting {
89+ showShippingNote
90+ }
8291 }
8392` ;
0 commit comments