2
0

feat(editor): 🚸 Improve and unify inputs

This commit is contained in:
Baptiste Arnaud
2022-03-10 11:34:55 +01:00
parent 36838f05d3
commit 2c1f69439b
32 changed files with 187 additions and 251 deletions

View File

@ -9,10 +9,7 @@ import {
PopoverContent,
} from '@chakra-ui/react'
import { ImageUploadContent } from 'components/shared/ImageUploadContent'
import {
InputWithVariableButton,
TextareaWithVariableButton,
} from 'components/shared/TextboxWithVariableButton'
import { Input, Textarea } from 'components/shared/Textbox'
type Props = {
typebotName: string
@ -89,9 +86,9 @@ export const MetadataForm = ({
<FormLabel mb="0" htmlFor="title">
Title:
</FormLabel>
<InputWithVariableButton
<Input
id="title"
initialValue={metadata.title ?? typebotName}
defaultValue={metadata.title ?? typebotName}
onChange={handleTitleChange}
/>
</Stack>
@ -99,9 +96,9 @@ export const MetadataForm = ({
<FormLabel mb="0" htmlFor="description">
Description:
</FormLabel>
<TextareaWithVariableButton
<Textarea
id="description"
initialValue={metadata.description}
defaultValue={metadata.description}
onChange={handleDescriptionChange}
/>
</Stack>