Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 7b3bafe

Browse files
replace old props with variant prop (#11933)
Co-authored-by: Daniel Dudzic <[email protected]>
1 parent 4cbf536 commit 7b3bafe

File tree

21 files changed

+29
-29
lines changed

21 files changed

+29
-29
lines changed

assets/js/atomic/blocks/product-elements/shared/product-selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const ProductSelector = ( {
4545
} }
4646
/>
4747
<Button
48-
isSecondary
48+
variant="secondary"
4949
disabled={ ! productId }
5050
onClick={ () => {
5151
setIsEditing( false );

assets/js/atomic/blocks/product-elements/shared/with-product-selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const withProductSelector = ( selectorArgs ) => ( OriginalComponent ) => {
5858
} }
5959
/>
6060
<Button
61-
isSecondary
61+
variant="secondary"
6262
disabled={ ! productId }
6363
onClick={ () => {
6464
setIsEditing( false );

assets/js/blocks/attribute-filter/edit.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ const Edit = ( {
348348
</p>
349349
<Button
350350
className="wc-block-attribute-filter__add-attribute-button"
351-
isSecondary
351+
variant="secondary"
352352
href={ getAdminLink(
353353
'edit.php?post_type=product&page=product_attributes'
354354
) }
@@ -360,7 +360,7 @@ const Edit = ( {
360360
</Button>
361361
<Button
362362
className="wc-block-attribute-filter__read_more_button"
363-
isTertiary
363+
variant="tertiary"
364364
href="https://docs.woocommerce.com/document/managing-product-taxonomies/"
365365
target="_blank"
366366
>
@@ -397,7 +397,7 @@ const Edit = ( {
397397
</div>
398398
<div className="wc-block-attribute-filter__selection">
399399
{ renderAttributeControl( { isCompact: false } ) }
400-
<Button isPrimary onClick={ onDone }>
400+
<Button variant="primary" onClick={ onDone }>
401401
{ __( 'Done', 'woo-gutenberg-products-block' ) }
402402
</Button>
403403
</div>

assets/js/blocks/checkout/inner-blocks/checkout-shipping-methods-block/no-shipping-placeholder/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const NoShippingPlaceholder = () => {
2525
) }
2626
</span>
2727
<Button
28-
isSecondary
28+
variant="secondary"
2929
href={ `${ ADMIN_URL }admin.php?page=wc-settings&tab=shipping` }
3030
target="_blank"
3131
rel="noopener noreferrer"

assets/js/blocks/classic-template/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const ConvertTemplate = ( { blockifyConfig, clientId, attributes } ) => {
103103
return (
104104
<div className="wp-block-woocommerce-classic-template__placeholder-migration-button-container">
105105
<Button
106-
isPrimary
106+
variant="primary"
107107
onClick={ () => {
108108
onClickCallback( {
109109
clientId,

assets/js/blocks/collection-filters/inner-blocks/attribute-filter/components/placeholder.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const NoAttributesPlaceholder = () => (
3434
</p>
3535
<Button
3636
className="wc-block-attribute-filter__add-attribute-button"
37-
isSecondary
37+
variant="secondary"
3838
href={ getAdminLink(
3939
'edit.php?post_type=product&page=product_attributes'
4040
) }
@@ -45,7 +45,7 @@ export const NoAttributesPlaceholder = () => (
4545
</Button>
4646
<Button
4747
className="wc-block-attribute-filter__read_more_button"
48-
isTertiary
48+
variant="tertiary"
4949
href="https://docs.woocommerce.com/document/managing-product-taxonomies/"
5050
target="_blank"
5151
>

assets/js/blocks/collection-filters/inner-blocks/attribute-filter/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const Edit = ( props: EditProps ) => {
156156
}
157157
/>
158158
<Button
159-
isPrimary
159+
variant="primary"
160160
onClick={ () => {
161161
setIsEditing( false );
162162
debouncedSpeak(

assets/js/blocks/featured-items/with-edit-mode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const withEditMode =
112112
} }
113113
/>
114114
) }
115-
<Button isPrimary onClick={ onDone }>
115+
<Button variant="primary" onClick={ onDone }>
116116
{ __( 'Done', 'woo-gutenberg-products-block' ) }
117117
</Button>
118118
</div>

assets/js/blocks/handpicked-products/edit-mode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const HandpickedProductsEditMode = (
5757
setAttributes( { products: ids } );
5858
} }
5959
/>
60-
<Button isPrimary onClick={ onDone }>
60+
<Button variant="primary" onClick={ onDone }>
6161
{ __( 'Done', 'woo-gutenberg-products-block' ) }
6262
</Button>
6363
</div>

assets/js/blocks/price-filter/edit.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default function ( {
134134
</p>
135135
<Button
136136
className="wc-block-price-slider__add-product-button"
137-
isSecondary
137+
variant="secondary"
138138
href={ getAdminLink( 'post-new.php?post_type=product' ) }
139139
target="_top"
140140
>
@@ -144,7 +144,7 @@ export default function ( {
144144
</Button>
145145
<Button
146146
className="wc-block-price-slider__read_more_button"
147-
isTertiary
147+
variant="tertiary"
148148
href="https://docs.woocommerce.com/document/managing-products/"
149149
target="_blank"
150150
>

0 commit comments

Comments
 (0)