fix(bot): ⚡️ Better incoming variable parsing
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user