2019-05-28 10:18:07 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { getCategories, setCategories } from '@wordpress/blocks';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2020-02-10 13:24:02 +00:00
|
|
|
import { woo as Icon } from '@woocommerce/icons';
|
2019-05-28 10:18:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2019-06-10 16:47:14 +00:00
|
|
|
import '../css/editor.scss';
|
|
|
|
import '../css/style.scss';
|
2020-01-22 16:58:25 +00:00
|
|
|
import './filters/block-list-block';
|
|
|
|
import './filters/get-block-attributes';
|
2019-05-28 10:18:07 +00:00
|
|
|
|
|
|
|
setCategories( [
|
|
|
|
...getCategories().filter( ( { slug } ) => slug !== 'woocommerce' ),
|
|
|
|
// Add a WooCommerce block category
|
|
|
|
{
|
|
|
|
slug: 'woocommerce',
|
|
|
|
title: __( 'WooCommerce', 'woo-gutenberg-products-block' ),
|
2020-02-10 13:24:02 +00:00
|
|
|
icon: <Icon />,
|
2019-05-28 10:18:07 +00:00
|
|
|
},
|
|
|
|
] );
|