2
0

📝 Add appropriate docs for new @typebot.io libs

This commit is contained in:
Baptiste Arnaud
2023-02-21 16:22:25 +01:00
parent 9b6fe6cd93
commit a4e3f4bf9c
6 changed files with 500 additions and 18 deletions

View File

@ -24,7 +24,13 @@ export const BubbleSettings = ({
const updatePreviewMessage = (
previewMessage: BubbleProps['previewMessage']
) => {
onPreviewMessageChange(previewMessage)
if (!previewMessage) return onPreviewMessageChange(undefined)
onPreviewMessageChange({
...previewMessage,
autoShowDelay: previewMessage?.autoShowDelay
? previewMessage.autoShowDelay * 1000
: undefined,
})
}
const updateTheme = (theme: BubbleProps['theme']) => {