feat(api): ✨ Add routes for subscribing webhook
This commit is contained in:
@ -21,7 +21,7 @@ import { useTypebotDnd } from 'contexts/TypebotDndContext'
|
||||
import { useDebounce } from 'use-debounce'
|
||||
|
||||
type ChatbotCardProps = {
|
||||
typebot: Typebot
|
||||
typebot: Pick<Typebot, 'id' | 'publishedTypebotId' | 'name'>
|
||||
onTypebotDeleted: () => void
|
||||
onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => void
|
||||
}
|
||||
@ -66,7 +66,7 @@ export const TypebotButton = ({
|
||||
|
||||
const handleDuplicateClick = async (e: React.MouseEvent) => {
|
||||
e.stopPropagation()
|
||||
const { data: createdTypebot, error } = await duplicateTypebot(typebot)
|
||||
const { data: createdTypebot, error } = await duplicateTypebot(typebot.id)
|
||||
if (error)
|
||||
return toast({
|
||||
title: "Couldn't duplicate typebot",
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { Box, BoxProps, Flex, Text, VStack } from '@chakra-ui/react'
|
||||
import { GlobeIcon, ToolIcon } from 'assets/icons'
|
||||
import { Typebot } from 'models'
|
||||
import { TypebotInDashboard } from 'services/typebots'
|
||||
|
||||
type Props = {
|
||||
typebot: Typebot
|
||||
typebot: TypebotInDashboard
|
||||
} & BoxProps
|
||||
|
||||
export const TypebotCardOverlay = ({ typebot, ...props }: Props) => {
|
||||
|
Reference in New Issue
Block a user