2019-05-28 10:18:07 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { getCategories, setCategories } from '@wordpress/blocks';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2019-06-10 16:47:14 +00:00
|
|
|
import '../css/editor.scss';
|
|
|
|
import '../css/style.scss';
|
2019-05-28 10:18:07 +00:00
|
|
|
import { IconWoo } from './components/icons';
|
|
|
|
|
|
|
|
setCategories( [
|
|
|
|
...getCategories().filter( ( { slug } ) => slug !== 'woocommerce' ),
|
|
|
|
// Add a WooCommerce block category
|
|
|
|
{
|
|
|
|
slug: 'woocommerce',
|
|
|
|
title: __( 'WooCommerce', 'woo-gutenberg-products-block' ),
|
|
|
|
icon: <IconWoo />,
|
|
|
|
},
|
|
|
|
] );
|