Remove feature flag from Element variations (https://github.com/woocommerce/woocommerce-blocks/pull/8297)
Removes feature flag from: * Product Summary * Product Template * Product Title
This commit is contained in:
parent
6f6fd16546
commit
11fc29a4c8
|
@ -1,7 +1,6 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
|
||||
import { Icon } from '@wordpress/components';
|
||||
import {
|
||||
BLOCK_DESCRIPTION,
|
||||
|
@ -17,11 +16,9 @@ import { registerElementVariation } from './utils';
|
|||
export const CORE_NAME = 'core/post-excerpt';
|
||||
export const VARIATION_NAME = 'woocommerce/product-query/product-summary';
|
||||
|
||||
if ( isFeaturePluginBuild() ) {
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: BLOCK_DESCRIPTION,
|
||||
blockIcon: <Icon icon={ page } />,
|
||||
blockTitle: BLOCK_TITLE,
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
}
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: BLOCK_DESCRIPTION,
|
||||
blockIcon: <Icon icon={ page } />,
|
||||
blockTitle: BLOCK_TITLE,
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
|
||||
import { Icon } from '@wordpress/components';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { layout } from '@wordpress/icons';
|
||||
|
@ -14,14 +13,12 @@ import { registerElementVariation } from './utils';
|
|||
export const CORE_NAME = 'core/post-template';
|
||||
export const VARIATION_NAME = 'woocommerce/product-query/product-template';
|
||||
|
||||
if ( isFeaturePluginBuild() ) {
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: __(
|
||||
'Contains the block elements used to render a product, like its name, featured image, rating, and more.',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
blockIcon: <Icon icon={ layout } />,
|
||||
blockTitle: __( 'Product template', 'woo-gutenberg-products-block' ),
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
}
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: __(
|
||||
'Contains the block elements used to render a product, like its name, featured image, rating, and more.',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
blockIcon: <Icon icon={ layout } />,
|
||||
blockTitle: __( 'Product template', 'woo-gutenberg-products-block' ),
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
|
||||
import { Icon } from '@wordpress/components';
|
||||
import {
|
||||
BLOCK_DESCRIPTION,
|
||||
|
@ -17,11 +16,9 @@ import { registerElementVariation } from './utils';
|
|||
export const CORE_NAME = 'core/post-title';
|
||||
export const VARIATION_NAME = 'woocommerce/product-query/product-title';
|
||||
|
||||
if ( isFeaturePluginBuild() ) {
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: BLOCK_DESCRIPTION,
|
||||
blockIcon: <Icon icon={ heading } />,
|
||||
blockTitle: BLOCK_TITLE,
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
}
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: BLOCK_DESCRIPTION,
|
||||
blockIcon: <Icon icon={ heading } />,
|
||||
blockTitle: BLOCK_TITLE,
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue