2
0

fix(embed): 📝 Improve popup delay builder

This commit is contained in:
Baptiste Arnaud
2022-05-23 12:15:15 -07:00
parent 37dea9c403
commit 62b77e4905
10 changed files with 42 additions and 29 deletions

View File

@ -48,13 +48,13 @@ const StandardInstructions = () => {
}
const PopupInstructions = () => {
const [inputValue, setInputValue] = useState(0)
const [inputValue, setInputValue] = useState<number>()
return (
<Stack spacing={4}>
<InstallPackageInstruction />
<PopupEmbedSettings
onUpdateSettings={(settings) => setInputValue(settings.delay ?? 0)}
onUpdateSettings={(settings) => setInputValue(settings.delay)}
/>
<Text>Initialize the typebot</Text>
<PopupReactCode withStarterVariables={true} delay={inputValue} />