Skip to content
Prev Previous commit
Next Next commit
fix link error
  • Loading branch information
rishishah-multidots committed Dec 3, 2024
commit 8837ba7db2c077751e063505c3d9bbc35091ca21
13 changes: 3 additions & 10 deletions packages/editor/src/components/collab-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ addFilter(
modifyBlockCommentAttributes
);

function CollabSidebarContent( {
styles,
comments,
} ) {
function CollabSidebarContent( { styles, comments } ) {
const { createNotice } = useDispatch( noticesStore );
const { saveEntityRecord, deleteEntityRecord } = useDispatch( coreStore );
const { getEntityRecord } = resolveSelect( coreStore );
Expand Down Expand Up @@ -194,9 +191,7 @@ function CollabSidebarContent( {

return (
<div className="editor-collab-sidebar-panel" style={ styles }>
<AddComment
onSubmit={ addNewComment }
/>
<AddComment onSubmit={ addNewComment } />
<Comments
threads={ comments }
onEditComment={ onEditComment }
Expand Down Expand Up @@ -318,9 +313,7 @@ export default function CollabSidebar() {
title={ __( 'Comments' ) }
icon={ commentIcon }
>
<CollabSidebarContent
comments={ resultComments }
/>
<CollabSidebarContent comments={ resultComments } />
</PluginSidebar>
<PluginSidebar
isPinnable={ false }
Expand Down
Loading