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,13 +29,15 @@ export const ShareTypebotButton = ({ isLoading }: { isLoading: boolean }) => {
</chakra.span>
</Button>
</PopoverTrigger>
<PopoverContent
shadow="lg"
width="430px"
rootProps={{ style: { transform: 'scale(0)' } }}
>
<SharePopoverContent />
</PopoverContent>
<Portal>
<PopoverContent
shadow="lg"
width="430px"
rootProps={{ style: { transform: 'scale(0)' } }}
>
<SharePopoverContent />
</PopoverContent>
</Portal>
</Popover>
)
}