Fix cart block isLarge console error in the editor when running WordPress 5.6 beta (https://github.com/woocommerce/woocommerce-blocks/pull/3408)
* Remove isLarge prop from Button component * More isLarge button
This commit is contained in:
parent
582d9e87fc
commit
7b9898deeb
|
@ -239,7 +239,6 @@ const Edit = ( { attributes, setAttributes, debouncedSpeak } ) => {
|
|||
<Button
|
||||
className="wc-block-attribute-filter__add-attribute-button"
|
||||
isDefault
|
||||
isLarge
|
||||
href={ getAdminLink(
|
||||
'edit.php?post_type=product&page=product_attributes'
|
||||
) }
|
||||
|
|
|
@ -135,7 +135,6 @@ export default function ( { attributes, setAttributes } ) {
|
|||
<Button
|
||||
className="wc-block-price-slider__add-product-button"
|
||||
isDefault
|
||||
isLarge
|
||||
href={ getAdminLink( 'post-new.php?post_type=product' ) }
|
||||
>
|
||||
{ __( 'Add new product', 'woo-gutenberg-products-block' ) +
|
||||
|
|
|
@ -224,7 +224,6 @@ class Editor extends Component {
|
|||
<Button
|
||||
className="wc-block-all-products__done-button"
|
||||
isPrimary
|
||||
isLarge
|
||||
onClick={ onDone }
|
||||
>
|
||||
{ __( 'Done', 'woo-gutenberg-products-block' ) }
|
||||
|
|
|
@ -34,7 +34,6 @@ export const renderNoProductsPlaceholder = ( blockTitle, blockIcon ) => (
|
|||
<Button
|
||||
className="wc-block-products__add-product-button"
|
||||
isDefault
|
||||
isLarge
|
||||
href={ ADMIN_URL + 'post-new.php?post_type=product' }
|
||||
>
|
||||
{ __( 'Add new product', 'woo-gutenberg-products-block' ) + ' ' }
|
||||
|
|
|
@ -39,7 +39,6 @@ const ViewSwitcher = ( {
|
|||
<Button
|
||||
key={ view.value }
|
||||
isPrimary={ currentView === view.value }
|
||||
isLarge
|
||||
aria-pressed={ currentView === view.value }
|
||||
onMouseDown={ () => {
|
||||
if ( currentView !== view.value ) {
|
||||
|
|
Loading…
Reference in New Issue