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
className="wc-block-attribute-filter__add-attribute-button"
isDefault
isLarge
href={ getAdminLink(
'edit.php?post_type=product&page=product_attributes'
) }

View File

@ -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' ) +

View File

@ -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' ) }

View File

@ -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' ) + ' ' }

View File

@ -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 ) {