Skip to content

Commit

Permalink
fix: add missing portal (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored May 6, 2024
1 parent 279ed73 commit c818cab
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ export const RoleChangeModal = ({

return (
<Dialog.Root defaultOpen onOpenChange={onOpenChange}>
<Dialog.Overlay />
<Dialog.Content css={{ width: 'min(400px,80%)', p: '$10', overflow: 'visible' }}>
<RoleChangeContent peer={peer} onOpenChange={onOpenChange} />
</Dialog.Content>
<Dialog.Portal>
<Dialog.Overlay />
<Dialog.Content css={{ width: 'min(400px,80%)', p: '$10', overflow: 'visible' }}>
<RoleChangeContent peer={peer} onOpenChange={onOpenChange} />
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root>
);
};

0 comments on commit c818cab

Please sign in to comment.