Skip to content

Commit

Permalink
fix(AddReviewModal): rename cancel button label prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
artursantiago committed Feb 20, 2025
1 parent d0c7c57 commit ffa6c4b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const UIAddReviewModalFooter = dynamic<UIAddReviewModalFooterProps>(
interface AddReviewModalProps {
title?: UIAddReviewModalProps['title']
closeButtonAriaLabel?: UIAddReviewModalProps['closeButtonAriaLabel']
closeButtonLabel: string
cancelButtonLabel: string
submitButtonLabel: string
}

function AddReviewModal({
title,
closeButtonAriaLabel,
closeButtonLabel,
cancelButtonLabel,
submitButtonLabel,
}: AddReviewModalProps) {
const handleSubmit = async () => {
Expand All @@ -66,7 +66,7 @@ function AddReviewModal({
</UIAddReviewModalBody>
<UIAddReviewModalFooter data-fs-add-review-modal-footer>
<Button variant="secondary" onClick={fadeOut}>
{closeButtonLabel}
{cancelButtonLabel}
</Button>
<Button variant="primary" onClick={handleSubmit}>
{submitButtonLabel}
Expand Down

0 comments on commit ffa6c4b

Please sign in to comment.