2
0

feat(engine): Add Rating input

This commit is contained in:
Baptiste Arnaud
2022-06-07 19:09:08 +02:00
parent 301097623b
commit b1aecf843b
19 changed files with 455 additions and 28 deletions

View File

@ -38,6 +38,7 @@ import {
ChoiceInputStep,
ConditionStep,
defaultPaymentInputOptions,
defaultRatingInputOptions,
} from 'models'
import { Typebot } from 'models'
import useSWR from 'swr'
@ -326,6 +327,8 @@ const parseDefaultStepOptions = (type: StepWithOptionsType): StepOptions => {
return defaultChoiceInputOptions
case InputStepType.PAYMENT:
return defaultPaymentInputOptions
case InputStepType.RATING:
return defaultRatingInputOptions
case LogicStepType.SET_VARIABLE:
return defaultSetVariablesOptions
case LogicStepType.REDIRECT: