Skip to content

Commit

Permalink
Move toolbar inside comments provider
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed Dec 5, 2023
1 parent e264333 commit 78d26b5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/www/src/registry/default/example/playground-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,16 @@ export default function PlaygroundDemo({ id }: { id?: ValueId }) {
plugins={plugins}
normalizeInitialValue
>
{enabled['fixed-toolbar'] && (
<FixedToolbar>
{enabled['fixed-toolbar-buttons'] && (
<PlaygroundFixedToolbarButtons id={id} />
)}
</FixedToolbar>
)}
<CommentsProvider>
{enabled['fixed-toolbar'] && (
<FixedToolbar>
{enabled['fixed-toolbar-buttons'] && (
<PlaygroundFixedToolbarButtons id={id} />
)}
</FixedToolbar>
)}

<div className="flex w-full">
<CommentsProvider>
<div className="flex w-full">
<div
ref={containerRef}
className={cn(
Expand Down Expand Up @@ -364,8 +364,8 @@ export default function PlaygroundDemo({ id }: { id?: ValueId }) {
{isEnabled('comment', id, enabled['comments-popover']) && (
<CommentsPopover />
)}
</CommentsProvider>
</div>
</div>
</CommentsProvider>
</Plate>
</div>
</DndProvider>
Expand Down

0 comments on commit 78d26b5

Please sign in to comment.