diff --git a/.changeset/common-queens-smoke.md b/.changeset/common-queens-smoke.md new file mode 100644 index 0000000000..2c704fbb3c --- /dev/null +++ b/.changeset/common-queens-smoke.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Passes `formButtonLabel` from `Reviews` to `ReviewsEmptyState` (was missing) and sets a default value for `formButtonLabel` diff --git a/core/vibes/soul/sections/reviews/index.tsx b/core/vibes/soul/sections/reviews/index.tsx index f8be6fa6e4..35ac2e69b0 100644 --- a/core/vibes/soul/sections/reviews/index.tsx +++ b/core/vibes/soul/sections/reviews/index.tsx @@ -49,7 +49,7 @@ export function Reviews({ emptyStateMessage, reviewsLabel = 'Reviews', action, - formButtonLabel, + formButtonLabel = 'Write a review', formModalTitle, formSubmitLabel, formRatingLabel, @@ -68,6 +68,7 @@ export function Reviews({ return (