2
0

feat(inputs): Add number input

This commit is contained in:
Baptiste Arnaud
2022-01-08 07:40:55 +01:00
parent 2a040308db
commit d54ebc0cbe
33 changed files with 467 additions and 207 deletions

View File

@ -1,4 +1,4 @@
import { PublicTypebot, StepType, Typebot } from 'models'
import { InputStepType, PublicTypebot, Typebot } from 'models'
import { Plan, PrismaClient } from 'db'
import { parseTestTypebot } from './utils'
@ -58,7 +58,7 @@ const createTypebots = async () => {
byId: {
step1: {
id: 'step1',
type: StepType.TEXT_INPUT,
type: InputStepType.TEXT,
blockId: 'block1',
},
},

View File

@ -1,6 +1,5 @@
import {
Block,
StepType,
Theme,
BackgroundType,
Settings,
@ -59,7 +58,7 @@ export const parseTestTypebot = ({
byId: {
step0: {
id: 'step0',
type: StepType.START,
type: 'start',
blockId: 'block0',
label: 'Start',
target: { blockId: 'block1' },