File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
apps/builder/src/features/blocks/integrations Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
1
import { Text } from '@chakra-ui/react'
2
2
import { MakeComBlock } from '@typebot.io/schemas'
3
- import { isNotDefined } from '@typebot.io/lib'
4
3
5
4
type Props = {
6
5
block : MakeComBlock
7
6
}
8
7
9
8
export const MakeComContent = ( { block } : Props ) => {
10
- const webhook = block . options ?. webhook
11
-
12
- if ( isNotDefined ( webhook ?. body ) )
9
+ if ( ! block . options ?. webhook ?. url )
13
10
return < Text color = "gray.500" > Configure...</ Text >
14
11
return (
15
12
< Text noOfLines = { 1 } pr = "6" >
16
- { webhook ?. url ? ' Trigger scenario' : 'Disabled' }
13
+ Trigger scenario
17
14
</ Text >
18
15
)
19
16
}
Original file line number Diff line number Diff line change 1
1
import { Text } from '@chakra-ui/react'
2
2
import { PabblyConnectBlock } from '@typebot.io/schemas'
3
- import { isNotDefined } from '@typebot.io/lib'
4
3
5
4
type Props = {
6
5
block : PabblyConnectBlock
7
6
}
8
7
9
8
export const PabblyConnectContent = ( { block } : Props ) => {
10
- const webhook = block . options ?. webhook
11
-
12
- if ( isNotDefined ( webhook ?. body ) )
9
+ if ( ! block . options ?. webhook ?. url )
13
10
return < Text color = "gray.500" > Configure...</ Text >
14
11
return (
15
12
< Text noOfLines = { 1 } pr = "6" >
16
- { webhook ?. url ? ' Trigger scenario' : 'Disabled' }
13
+ Trigger scenario
17
14
</ Text >
18
15
)
19
16
}
Original file line number Diff line number Diff line change 1
1
import { Text } from '@chakra-ui/react'
2
2
import { ZapierBlock } from '@typebot.io/schemas'
3
- import { isNotDefined } from '@typebot.io/lib'
4
3
5
4
type Props = {
6
5
block : ZapierBlock
7
6
}
8
7
9
8
export const ZapierContent = ( { block } : Props ) => {
10
- const webhook = block . options ?. webhook
11
-
12
- if ( isNotDefined ( webhook ?. body ) )
9
+ if ( ! block . options ?. webhook ?. url )
13
10
return < Text color = "gray.500" > Configure...</ Text >
14
11
return (
15
12
< Text noOfLines = { 1 } pr = "6" >
16
- { webhook ?. url ? ' Trigger zap' : 'Disabled' }
13
+ Trigger zap
17
14
</ Text >
18
15
)
19
16
}
You can’t perform that action at this time.
0 commit comments