Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
🚸 Improve zapier, make.com block content feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 15, 2024
1 parent 4982400 commit 75cd141
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -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>
)
}
Original file line number Diff line number Diff line change
@@ -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>
)
}
Original file line number Diff line number Diff line change
@@ -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>
)
}

0 comments on commit 75cd141

Please sign in to comment.