mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-29 02:07:27 +08:00
20 lines
490 B
JavaScript
20 lines
490 B
JavaScript
export const PayPalPlaceOrderContent = ( {
|
|
description,
|
|
placeOrderButtonDescription,
|
|
} ) => {
|
|
if ( placeOrderButtonDescription ) {
|
|
return (
|
|
<div>
|
|
<p dangerouslySetInnerHTML={ { __html: description } } />
|
|
<p
|
|
style={ { textAlign: 'center' } }
|
|
className="ppcp-place-order-description"
|
|
dangerouslySetInnerHTML={ {
|
|
__html: placeOrderButtonDescription,
|
|
} }
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
return <div dangerouslySetInnerHTML={ { __html: description } } />;
|
|
};
|