Skip to content

Commit

Permalink
fix(comments): remove redundant provider
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanwikner committed Dec 15, 2023
1 parent 0dff54a commit 25ffd11
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ function CommentsDocumentLayoutInner(props: DocumentLayoutProps) {
}

return (
<CommentsEnabledProvider documentId={documentId} documentType={documentType}>
<CommentsProvider
documentId={documentId}
documentType={documentType}
isCommentsOpen={inspector?.name === COMMENTS_INSPECTOR_NAME}
onCommentsOpen={handleOpenCommentsInspector}
>
<CommentsSelectedPathProvider>{props.renderDefault(props)}</CommentsSelectedPathProvider>
</CommentsProvider>
</CommentsEnabledProvider>
<CommentsProvider
documentId={documentId}
documentType={documentType}
isCommentsOpen={inspector?.name === COMMENTS_INSPECTOR_NAME}
onCommentsOpen={handleOpenCommentsInspector}
>
<CommentsSelectedPathProvider>{props.renderDefault(props)}</CommentsSelectedPathProvider>
</CommentsProvider>
)
}

0 comments on commit 25ffd11

Please sign in to comment.