🚸 Improve zapier, make.com block content feedback
This commit is contained in:
@ -1,19 +1,16 @@
|
||||
import { Text } from '@chakra-ui/react'
|
||||
import { MakeComBlock } from '@typebot.io/schemas'
|
||||
import { isNotDefined } from '@typebot.io/lib'
|
||||
|
||||
type Props = {
|
||||
block: MakeComBlock
|
||||
}
|
||||
|
||||
export const MakeComContent = ({ block }: Props) => {
|
||||
const webhook = block.options?.webhook
|
||||
|
||||
if (isNotDefined(webhook?.body))
|
||||
if (!block.options?.webhook?.url)
|
||||
return <Text color="gray.500">Configure...</Text>
|
||||
return (
|
||||
<Text noOfLines={1} pr="6">
|
||||
{webhook?.url ? 'Trigger scenario' : 'Disabled'}
|
||||
Trigger scenario
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
|
@ -1,19 +1,16 @@
|
||||
import { Text } from '@chakra-ui/react'
|
||||
import { PabblyConnectBlock } from '@typebot.io/schemas'
|
||||
import { isNotDefined } from '@typebot.io/lib'
|
||||
|
||||
type Props = {
|
||||
block: PabblyConnectBlock
|
||||
}
|
||||
|
||||
export const PabblyConnectContent = ({ block }: Props) => {
|
||||
const webhook = block.options?.webhook
|
||||
|
||||
if (isNotDefined(webhook?.body))
|
||||
if (!block.options?.webhook?.url)
|
||||
return <Text color="gray.500">Configure...</Text>
|
||||
return (
|
||||
<Text noOfLines={1} pr="6">
|
||||
{webhook?.url ? 'Trigger scenario' : 'Disabled'}
|
||||
Trigger scenario
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
|
@ -1,19 +1,16 @@
|
||||
import { Text } from '@chakra-ui/react'
|
||||
import { ZapierBlock } from '@typebot.io/schemas'
|
||||
import { isNotDefined } from '@typebot.io/lib'
|
||||
|
||||
type Props = {
|
||||
block: ZapierBlock
|
||||
}
|
||||
|
||||
export const ZapierContent = ({ block }: Props) => {
|
||||
const webhook = block.options?.webhook
|
||||
|
||||
if (isNotDefined(webhook?.body))
|
||||
if (!block.options?.webhook?.url)
|
||||
return <Text color="gray.500">Configure...</Text>
|
||||
return (
|
||||
<Text noOfLines={1} pr="6">
|
||||
{webhook?.url ? 'Trigger zap' : 'Disabled'}
|
||||
Trigger zap
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user