2019-12-16 22:13:41 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
import { Placeholder, Button } from '@wordpress/components';
|
2020-01-31 18:20:33 +00:00
|
|
|
import { Icon, truck } from '@woocommerce/icons';
|
2019-12-16 22:13:41 +00:00
|
|
|
import { ADMIN_URL } from '@woocommerce/settings';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './style.scss';
|
|
|
|
|
|
|
|
const NoShipping = () => {
|
|
|
|
return (
|
|
|
|
<Placeholder
|
2020-01-31 18:20:33 +00:00
|
|
|
icon={ <Icon srcElement={ truck } /> }
|
2019-12-16 22:13:41 +00:00
|
|
|
label={ __( 'Shipping options', 'woo-gutenberg-products-block' ) }
|
2020-01-03 14:23:49 +00:00
|
|
|
className="wc-block-checkout__no-shipping"
|
2019-12-16 22:13:41 +00:00
|
|
|
>
|
2020-01-03 14:23:49 +00:00
|
|
|
<span className="wc-block-checkout__no-shipping-description">
|
2019-12-16 22:13:41 +00:00
|
|
|
{ __(
|
|
|
|
'Your store does not have any Shipping Options configured. Once you have added your Shipping Options they will appear here.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
</span>
|
|
|
|
<Button
|
|
|
|
isDefault
|
|
|
|
href={ `${ ADMIN_URL }admin.php?page=wc-settings&tab=shipping` }
|
|
|
|
>
|
|
|
|
{ __(
|
|
|
|
'Configure Shipping Options',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
</Button>
|
|
|
|
</Placeholder>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NoShipping;
|