2
0

fix(bot): ️ Better incoming variable parsing

This commit is contained in:
Baptiste Arnaud
2022-06-24 16:44:41 +02:00
parent 7c3345ab13
commit 554365d645
5 changed files with 15 additions and 22 deletions

View File

@@ -9,13 +9,18 @@ import { UsersIcon } from 'assets/icons'
import React from 'react'
import { CollaborationList } from './CollaborationList'
export const CollaborationMenuButton = () => {
export const CollaborationMenuButton = ({
isLoading,
}: {
isLoading: boolean
}) => {
return (
<Popover isLazy placement="bottom-end">
<PopoverTrigger>
<span>
<Tooltip label="Invite users to collaborate">
<IconButton
isLoading={isLoading}
icon={<UsersIcon />}
aria-label="Show collaboration menu"
size="sm"

View File

@@ -190,7 +190,7 @@ export const TypebotHeader = () => {
</HStack>
<HStack right="40px" pos="absolute" display={['none', 'flex']}>
<CollaborationMenuButton />
<CollaborationMenuButton isLoading={isNotDefined(typebot)} />
{router.pathname.includes('/edit') && isNotDefined(rightPanel) && (
<Button
onClick={handlePreviewClick}