🐛 (editor) Graph connectors still displayed when switching to dynamic buttons

Closes #348
This commit is contained in:
Baptiste Arnaud
2023-03-02 08:50:04 +01:00
parent eebcbb10b8
commit c172a44566
4 changed files with 25 additions and 11 deletions

View File

@@ -6,15 +6,12 @@ import { FormControl, FormLabel, Stack } from '@chakra-ui/react'
import { ChoiceInputOptions, Variable } from 'models'
import React from 'react'
type ButtonsOptionsFormProps = {
type Props = {
options?: ChoiceInputOptions
onOptionsChange: (options: ChoiceInputOptions) => void
}
export const ButtonsOptionsForm = ({
options,
onOptionsChange,
}: ButtonsOptionsFormProps) => {
export const ButtonsBlockSettings = ({ options, onOptionsChange }: Props) => {
const handleIsMultipleChange = (isMultipleChoice: boolean) =>
options && onOptionsChange({ ...options, isMultipleChoice })
const handleButtonLabelChange = (buttonLabel: string) =>