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:
Mike Jolley 2020-11-17 11:07:26 +00:00 committed by GitHub
parent 582d9e87fc
commit 7b9898deeb
5 changed files with 0 additions and 5 deletions

View File

@ -239,7 +239,6 @@ const Edit = ( { attributes, setAttributes, debouncedSpeak } ) => {
<Button <Button
className="wc-block-attribute-filter__add-attribute-button" className="wc-block-attribute-filter__add-attribute-button"
isDefault isDefault
isLarge
href={ getAdminLink( href={ getAdminLink(
'edit.php?post_type=product&page=product_attributes' 'edit.php?post_type=product&page=product_attributes'
) } ) }

View File

@ -135,7 +135,6 @@ export default function ( { attributes, setAttributes } ) {
<Button <Button
className="wc-block-price-slider__add-product-button" className="wc-block-price-slider__add-product-button"
isDefault isDefault
isLarge
href={ getAdminLink( 'post-new.php?post_type=product' ) } href={ getAdminLink( 'post-new.php?post_type=product' ) }
> >
{ __( 'Add new product', 'woo-gutenberg-products-block' ) + { __( 'Add new product', 'woo-gutenberg-products-block' ) +

View File

@ -224,7 +224,6 @@ class Editor extends Component {
<Button <Button
className="wc-block-all-products__done-button" className="wc-block-all-products__done-button"
isPrimary isPrimary
isLarge
onClick={ onDone } onClick={ onDone }
> >
{ __( 'Done', 'woo-gutenberg-products-block' ) } { __( 'Done', 'woo-gutenberg-products-block' ) }

View File

@ -34,7 +34,6 @@ export const renderNoProductsPlaceholder = ( blockTitle, blockIcon ) => (
<Button <Button
className="wc-block-products__add-product-button" className="wc-block-products__add-product-button"
isDefault isDefault
isLarge
href={ ADMIN_URL + 'post-new.php?post_type=product' } href={ ADMIN_URL + 'post-new.php?post_type=product' }
> >
{ __( 'Add new product', 'woo-gutenberg-products-block' ) + ' ' } { __( 'Add new product', 'woo-gutenberg-products-block' ) + ' ' }

View File

@ -39,7 +39,6 @@ const ViewSwitcher = ( {
<Button <Button
key={ view.value } key={ view.value }
isPrimary={ currentView === view.value } isPrimary={ currentView === view.value }
isLarge
aria-pressed={ currentView === view.value } aria-pressed={ currentView === view.value }
onMouseDown={ () => { onMouseDown={ () => {
if ( currentView !== view.value ) { if ( currentView !== view.value ) {