Skip to content

Commit 75cd141

Browse files
committed
🚸 Improve zapier, make.com block content feedback
1 parent 4982400 commit 75cd141

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import { Text } from '@chakra-ui/react'
22
import { MakeComBlock } from '@typebot.io/schemas'
3-
import { isNotDefined } from '@typebot.io/lib'
43

54
type Props = {
65
block: MakeComBlock
76
}
87

98
export const MakeComContent = ({ block }: Props) => {
10-
const webhook = block.options?.webhook
11-
12-
if (isNotDefined(webhook?.body))
9+
if (!block.options?.webhook?.url)
1310
return <Text color="gray.500">Configure...</Text>
1411
return (
1512
<Text noOfLines={1} pr="6">
16-
{webhook?.url ? 'Trigger scenario' : 'Disabled'}
13+
Trigger scenario
1714
</Text>
1815
)
1916
}
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import { Text } from '@chakra-ui/react'
22
import { PabblyConnectBlock } from '@typebot.io/schemas'
3-
import { isNotDefined } from '@typebot.io/lib'
43

54
type Props = {
65
block: PabblyConnectBlock
76
}
87

98
export const PabblyConnectContent = ({ block }: Props) => {
10-
const webhook = block.options?.webhook
11-
12-
if (isNotDefined(webhook?.body))
9+
if (!block.options?.webhook?.url)
1310
return <Text color="gray.500">Configure...</Text>
1411
return (
1512
<Text noOfLines={1} pr="6">
16-
{webhook?.url ? 'Trigger scenario' : 'Disabled'}
13+
Trigger scenario
1714
</Text>
1815
)
1916
}
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import { Text } from '@chakra-ui/react'
22
import { ZapierBlock } from '@typebot.io/schemas'
3-
import { isNotDefined } from '@typebot.io/lib'
43

54
type Props = {
65
block: ZapierBlock
76
}
87

98
export const ZapierContent = ({ block }: Props) => {
10-
const webhook = block.options?.webhook
11-
12-
if (isNotDefined(webhook?.body))
9+
if (!block.options?.webhook?.url)
1310
return <Text color="gray.500">Configure...</Text>
1411
return (
1512
<Text noOfLines={1} pr="6">
16-
{webhook?.url ? 'Trigger zap' : 'Disabled'}
13+
Trigger zap
1714
</Text>
1815
)
1916
}

0 commit comments

Comments
 (0)