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

@ -5,7 +5,7 @@ import { UploadButton } from '../buttons/UploadButton'
import { GiphySearch } from './GiphySearch'
import { useTypebot } from 'contexts/TypebotContext'
import { useDebounce } from 'use-debounce'
import { InputWithVariableButton } from '../TextboxWithVariableButton'
import { Input } from '../Textbox'
type Props = {
url?: string
@ -105,10 +105,10 @@ const EmbedLinkContent = ({ initialUrl, onNewUrl }: ContentProps) => {
return (
<Stack py="2">
<InputWithVariableButton
<Input
placeholder={'Paste the image link...'}
onChange={setImageUrl}
initialValue={imageUrl}
defaultValue={imageUrl}
/>
</Stack>
)