2
0

feat(api): Add routes for subscribing webhook

This commit is contained in:
Baptiste Arnaud
2022-02-21 11:46:56 +01:00
parent 5a80774ff5
commit 68ae69f366
21 changed files with 470 additions and 175 deletions

View File

@ -1,4 +1,3 @@
import { Typebot } from 'models'
import {
createContext,
Dispatch,
@ -8,10 +7,11 @@ import {
useEffect,
useState,
} from 'react'
import { TypebotInDashboard } from 'services/typebots'
const typebotDndContext = createContext<{
draggedTypebot?: Typebot
setDraggedTypebot: Dispatch<SetStateAction<Typebot | undefined>>
draggedTypebot?: TypebotInDashboard
setDraggedTypebot: Dispatch<SetStateAction<TypebotInDashboard | undefined>>
mouseOverFolderId?: string | null
setMouseOverFolderId: Dispatch<SetStateAction<string | undefined | null>>
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@ -19,7 +19,7 @@ const typebotDndContext = createContext<{
}>({})
export const TypebotDndContext = ({ children }: { children: ReactNode }) => {
const [draggedTypebot, setDraggedTypebot] = useState<Typebot>()
const [draggedTypebot, setDraggedTypebot] = useState<TypebotInDashboard>()
const [mouseOverFolderId, setMouseOverFolderId] = useState<string | null>()
useEffect(() => {