2
0

feat(editor): Payment input

This commit is contained in:
Baptiste Arnaud
2022-05-24 14:25:15 -07:00
parent 91ea637a08
commit 3a6ca3dbde
35 changed files with 1516 additions and 52 deletions

View File

@ -5,6 +5,7 @@ import {
ChatIcon,
CheckSquareIcon,
CodeIcon,
CreditCardIcon,
EditIcon,
EmailIcon,
ExternalLinkIcon,
@ -62,6 +63,8 @@ export const StepIcon = ({ type, ...props }: StepIconProps) => {
return <PhoneIcon color="orange.500" {...props} />
case InputStepType.CHOICE:
return <CheckSquareIcon color="orange.500" {...props} />
case InputStepType.PAYMENT:
return <CreditCardIcon color="orange.500" {...props} />
case LogicStepType.SET_VARIABLE:
return <EditIcon color="purple.500" {...props} />
case LogicStepType.CONDITION:

View File

@ -37,6 +37,8 @@ export const StepTypeLabel = ({ type }: Props) => {
return <Text>Phone</Text>
case InputStepType.CHOICE:
return <Text>Button</Text>
case InputStepType.PAYMENT:
return <Text>Payment</Text>
case LogicStepType.SET_VARIABLE:
return <Text>Set variable</Text>
case LogicStepType.CONDITION: