🚸 Rename "webhook" block to "HTTP request"
This commit is contained in:
@@ -78,7 +78,7 @@ export const BlockLabel = ({ type }: Props): JSX.Element => {
|
||||
<Text fontSize="sm">{t('editor.sidebarBlock.analytics.label')}</Text>
|
||||
)
|
||||
case IntegrationBlockType.WEBHOOK:
|
||||
return <Text fontSize="sm">{t('editor.sidebarBlock.webhook.label')}</Text>
|
||||
return <Text fontSize="sm">HTTP request</Text>
|
||||
case IntegrationBlockType.ZAPIER:
|
||||
return <Text fontSize="sm">{t('editor.sidebarBlock.zapier.label')}</Text>
|
||||
case IntegrationBlockType.MAKE_COM:
|
||||
|
||||
@@ -30,6 +30,7 @@ import { useDebouncedCallback } from 'use-debounce'
|
||||
const legacyIntegrationBlocks = [
|
||||
IntegrationBlockType.OPEN_AI,
|
||||
IntegrationBlockType.ZEMANTIC_AI,
|
||||
IntegrationBlockType.WEBHOOK,
|
||||
]
|
||||
|
||||
export const BlocksSideBar = () => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
Block,
|
||||
Typebot,
|
||||
BlockIndices,
|
||||
Webhook,
|
||||
HttpRequest,
|
||||
BlockV6,
|
||||
TypebotV6,
|
||||
} from '@typebot.io/schemas'
|
||||
@@ -26,7 +26,7 @@ export type BlocksActions = {
|
||||
}
|
||||
|
||||
export type WebhookCallBacks = {
|
||||
onWebhookBlockCreated: (data: Partial<Webhook>) => void
|
||||
onWebhookBlockCreated: (data: Partial<HttpRequest>) => void
|
||||
onWebhookBlockDuplicated: (
|
||||
existingWebhookId: string,
|
||||
newWebhookId: string
|
||||
|
||||
Reference in New Issue
Block a user