-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
shipping.js
42 lines (39 loc) · 1.03 KB
/
shipping.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* External dependencies
*/
import { Button } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import { WC_ASSET_URL } from '../../../../utils/admin-settings';
const ShippingHeader = ( { task, goToTask } ) => {
return (
<div className="woocommerce-task-header__contents-container">
<img
alt={ __( 'Shipping illustration', 'woocommerce' ) }
src={
WC_ASSET_URL + 'images/task_list/shipping-illustration.svg'
}
className="svg-background"
/>
<div className="woocommerce-task-header__contents">
<h1>{ __( 'Get your products shipped', 'woocommerce' ) }</h1>
<p>
{ __(
'Choose where and how you’d like to ship your products, along with any fixed or calculated rates.',
'woocommerce'
) }
</p>
<Button
isSecondary={ task.isComplete }
isPrimary={ ! task.isComplete }
onClick={ goToTask }
>
{ __( 'Start shipping', 'woocommerce' ) }
</Button>
</div>
</div>
);
};
export default ShippingHeader;