Skip to content

Commit 8ae866e

Browse files
committed
renamed prop
1 parent a289549 commit 8ae866e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/CommentForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const CommentForm = (props) => {
1313
addComment,
1414
comment,
1515
setComment,
16-
submitButtonText
16+
cta
1717
} = props
1818

1919
const { register, errors, handleSubmit } = useForm()
@@ -57,7 +57,7 @@ const CommentForm = (props) => {
5757
</div>
5858
{errors.Comments && <FormError message='Reply cannot be empty' />}
5959
<MediaPreview attachments={attachments} setAttachments={setAttachments} />
60-
<Button className='btn btn-default'>{submitButtonText}</Button>
60+
<Button className='btn btn-default'>{cta}</Button>
6161
</form>
6262
)
6363
}

src/components/Comments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const Comments = (props) => {
226226
addComment={addCommentReply}
227227
comment={commentReply}
228228
setComment={setCommentReply}
229-
submitButtonText={'Add Reply'}
229+
cta={'Add Reply'}
230230
/>
231231
)}
232232
</div>
@@ -245,7 +245,7 @@ const Comments = (props) => {
245245
addComment={addComment}
246246
comment={comment}
247247
setComment={setComment}
248-
submitButtonText={'Add Comment'}
248+
cta={'Add Comment'}
249249
/>
250250
</div>
251251
)}

0 commit comments

Comments
 (0)