2
0

build: add pnpm

This commit is contained in:
Baptiste Arnaud
2022-08-08 08:21:36 +02:00
parent 8c3b5058f1
commit ee338f62dc
183 changed files with 19442 additions and 18364 deletions

View File

@ -2,8 +2,9 @@ import { ResultHeaderCell, ResultWithAnswers } from 'models'
import { createContext, ReactNode, useContext, useMemo } from 'react'
import {
convertResultsToTableData,
TableData,
useResults as useFetchResults,
} from 'services/typebots'
} from 'services/typebots/results'
import { KeyedMutator } from 'swr'
import { isDefined, parseResultHeader } from 'utils'
import { useTypebot } from './TypebotContext'
@ -15,10 +16,7 @@ const resultsContext = createContext<{
resultHeader: ResultHeaderCell[]
totalResults: number
totalHiddenResults?: number
tableData: {
id: string
[key: string]: { plainText: string; element?: JSX.Element } | string
}[]
tableData: TableData[]
onDeleteResults: (totalResultsDeleted: number) => void
fetchMore: () => void
mutate: KeyedMutator<