2
0

🐛 (editor) Fix share popover behind Test drawer

Closes #1647
This commit is contained in:
Baptiste Arnaud
2024-07-22 17:11:40 +02:00
parent 929863f09b
commit 71d09cdf7c

View File

@ -4,6 +4,7 @@ import {
PopoverContent,
Button,
chakra,
Portal,
} from '@chakra-ui/react'
import { UsersIcon } from '@/components/icons'
import React from 'react'
@ -28,6 +29,7 @@ export const ShareTypebotButton = ({ isLoading }: { isLoading: boolean }) => {
</chakra.span>
</Button>
</PopoverTrigger>
<Portal>
<PopoverContent
shadow="lg"
width="430px"
@ -35,6 +37,7 @@ export const ShareTypebotButton = ({ isLoading }: { isLoading: boolean }) => {
>
<SharePopoverContent />
</PopoverContent>
</Portal>
</Popover>
)
}