@@ -61,7 +61,7 @@ const Comment = ({
61
61
const currentPage = useSelector ( selectCommentCurrentPage ( id ) ) ;
62
62
const sortedOrder = useSelector ( selectCommentSortOrder ) ;
63
63
const actions = useActions ( ContentTypes . COMMENT , id ) ;
64
- const isUserPrivilagedInPostingRestriction = useUserPostingEnabled ( ) ;
64
+ const isUserPrivilegedInPostingRestriction = useUserPostingEnabled ( ) ;
65
65
66
66
useEffect ( ( ) => {
67
67
// If the comment has a parent comment, it won't have any children, so don't fetch them.
@@ -119,10 +119,10 @@ const Comment = ({
119
119
) , [ id , currentPage , sortedOrder ] ) ;
120
120
121
121
const handleAddCommentButton = useCallback ( ( ) => {
122
- if ( isUserPrivilagedInPostingRestriction ) {
122
+ if ( isUserPrivilegedInPostingRestriction ) {
123
123
setReplying ( true ) ;
124
124
}
125
- } , [ isUserPrivilagedInPostingRestriction ] ) ;
125
+ } , [ isUserPrivilegedInPostingRestriction ] ) ;
126
126
127
127
const handleCommentLike = useCallback ( async ( ) => {
128
128
await dispatch ( editComment ( id , { voted : ! voted } ) ) ;
@@ -154,8 +154,8 @@ const Comment = ({
154
154
title = { intl . formatMessage ( messages . deleteResponseTitle ) }
155
155
description = { intl . formatMessage ( messages . deleteResponseDescription ) }
156
156
onClose = { hideDeleteConfirmation }
157
- comfirmAction = { handleDeleteConfirmation }
158
- closeButtonVaraint = "tertiary"
157
+ confirmAction = { handleDeleteConfirmation }
158
+ closeButtonVariant = "tertiary"
159
159
confirmButtonText = { intl . formatMessage ( messages . deleteConfirmationDelete ) }
160
160
/>
161
161
{ ! abuseFlagged && (
@@ -164,7 +164,7 @@ const Comment = ({
164
164
title = { intl . formatMessage ( messages . reportResponseTitle ) }
165
165
description = { intl . formatMessage ( messages . reportResponseDescription ) }
166
166
onClose = { hideReportConfirmation }
167
- comfirmAction = { handleReportConfirmation }
167
+ confirmAction = { handleReportConfirmation }
168
168
confirmButtonVariant = "danger"
169
169
/>
170
170
) }
@@ -265,7 +265,7 @@ const Comment = ({
265
265
/>
266
266
</ div >
267
267
) : (
268
- ! isClosed && isUserPrivilagedInPostingRestriction && ( inlineReplies . length >= 5 ) && (
268
+ ! isClosed && isUserPrivilegedInPostingRestriction && ( inlineReplies . length >= 5 ) && (
269
269
< Button
270
270
className = "d-flex flex-grow mt-2 font-size-14 font-style font-weight-500 text-primary-500"
271
271
variant = "plain"
0 commit comments