Aucune description

index.js 799B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * External dependencies
  3. */
  4. import { getCategories, setCategories } from '@wordpress/blocks';
  5. import { __ } from '@wordpress/i18n';
  6. import { woo, atom, Icon } from '@woocommerce/icons';
  7. /**
  8. * Internal dependencies
  9. */
  10. import '../css/editor.scss';
  11. import '../css/style.scss';
  12. import './filters/block-list-block';
  13. import './filters/get-block-attributes';
  14. setCategories( [
  15. ...getCategories().filter(
  16. ( { slug } ) =>
  17. slug !== 'woocommerce' && slug !== 'woocommerce-product-elements'
  18. ),
  19. {
  20. slug: 'woocommerce',
  21. title: __( 'WooCommerce', 'woocommerce' ),
  22. icon: <Icon srcElement={ woo } />,
  23. },
  24. {
  25. slug: 'woocommerce-product-elements',
  26. title: __(
  27. 'WooCommerce Product Elements',
  28. 'woocommerce'
  29. ),
  30. icon: <Icon srcElement={ atom } style={ { fill: '#874FB9' } } />,
  31. },
  32. ] );