File tree Expand file tree Collapse file tree
core/vibes/soul/sections/reviews Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @bigcommerce/catalyst-core " : patch
3+ ---
4+
5+ Passes ` formButtonLabel ` from ` Reviews ` to ` ReviewsEmptyState ` (was missing) and sets a default value for ` formButtonLabel `
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export function Reviews({
4949 emptyStateMessage,
5050 reviewsLabel = 'Reviews' ,
5151 action,
52- formButtonLabel,
52+ formButtonLabel = 'Write a review' ,
5353 formModalTitle,
5454 formSubmitLabel,
5555 formRatingLabel,
@@ -68,6 +68,7 @@ export function Reviews({
6868 return (
6969 < ReviewsEmptyState
7070 action = { action }
71+ formButtonLabel = { formButtonLabel }
7172 formEmailLabel = { formEmailLabel }
7273 formModalTitle = { formModalTitle }
7374 formNameLabel = { formNameLabel }
@@ -182,7 +183,7 @@ export function ReviewsEmptyState({
182183 reviewsLabel = 'Reviews' ,
183184 productId,
184185 action,
185- formButtonLabel,
186+ formButtonLabel = 'Write a review' ,
186187 formModalTitle,
187188 formSubmitLabel,
188189 formRatingLabel,
You can’t perform that action at this time.
0 commit comments