Add back Make.com and implement help doc buttons

This commit is contained in:
Baptiste Arnaud
2022-12-05 14:39:58 +01:00
parent cfcecaaa17
commit d75eceb23f
12 changed files with 168 additions and 47 deletions

View File

@@ -8,7 +8,7 @@ type Props = {
block: PabblyConnectBlock
}
export const PabblyConnectNodeContent = ({ block }: Props) => {
export const PabblyConnectContent = ({ block }: Props) => {
const { webhooks, typebot, updateWebhook } = useTypebot()
const webhook = webhooks.find(byId(block.webhookId))
@@ -23,8 +23,7 @@ export const PabblyConnectNodeContent = ({ block }: Props) => {
} as Webhook
updateWebhook(webhookId, newWebhook)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [block, typebot, updateWebhook, webhook])
if (isNotDefined(webhook?.body))
return <Text color="gray.500">Configure...</Text>

View File

@@ -0,0 +1,2 @@
export * from './PabblyConnectContent'
export * from './PabblyConnectLogo'

View File

@@ -1,2 +1 @@
export { PabblyConnectLogo } from './components/PabblyConnectLogo'
export { PabblyConnectNodeContent } from './components/PabblyConnectNodeContent'
export * from './components'