2
0

fix(editor): 💄 Variable button tiny dropdown

This commit is contained in:
Baptiste Arnaud
2022-05-16 10:06:12 -07:00
parent 55224c9095
commit 0f38141eb1
4 changed files with 4 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ type Props = {
export const VariablesButton = ({ onSelectVariable, ...props }: Props) => {
return (
<Popover matchWidth isLazy>
<Popover isLazy placement="bottom-end">
<PopoverTrigger>
<Flex>
<Tooltip label="Insert a variable">

View File

@@ -105,7 +105,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
mutate({
workspaces: [...workspaces, newWorkspace],
})
console.log(newWorkspace)
setCurrentWorkspace(newWorkspace)
}

View File

@@ -73,8 +73,8 @@ export const ChatBlock = ({
: setDisplayedChunks([...displayedChunks, { bubbles: [nextStep] }])
}
if (isInputStep(nextStep)) {
return displayedChunks.length === 0 ||
isDefined(displayedChunks[displayedChunks.length - 1].input)
displayedChunks.length === 0 ||
isDefined(displayedChunks[displayedChunks.length - 1].input)
? setDisplayedChunks([
...displayedChunks,
{ bubbles: [], input: nextStep },

View File

@@ -107,7 +107,7 @@ export const TypebotContext = ({
const popEdgeIdFromLinkedTypebotQueue = () => {
setLinkedBotQueue((queue) => queue.slice(1))
const typebot = setCurrentTypebotId(linkedBotQueue[0].typebotId)
setCurrentTypebotId(linkedBotQueue[0].typebotId)
}
return (