2
0

Add new user onboarding template

Closes #325
This commit is contained in:
Baptiste Arnaud
2023-02-22 15:40:02 +01:00
parent 6339f442bf
commit 00b6acca8e
9 changed files with 509 additions and 17 deletions

View File

@ -9,6 +9,8 @@ import {
ModalContent,
ModalOverlay,
Stack,
Tag,
Text,
Tooltip,
} from '@chakra-ui/react'
import { ExternalLinkIcon } from '@/components/icons'
@ -120,10 +122,18 @@ export const TemplatesModal = ({ isOpen, onClose, onTypebotChoose }: Props) => {
}
isDisabled={template.isComingSoon}
>
{template.emoji}{' '}
<chakra.span minW="200px" textAlign="left" ml="3">
{template.name}
</chakra.span>
<HStack justifyContent="space-between" w="full">
<HStack>
<Text>{template.emoji}</Text>
<Text>{template.name}</Text>
</HStack>
{template.isNew && (
<Tag colorScheme="orange" size="sm">
New
</Tag>
)}
</HStack>
</Button>
</span>
</Tooltip>

View File

@ -5,6 +5,7 @@ export const templates: TemplateProps[] = [
{ name: 'Customer Support', emoji: '😍', fileName: 'customer-support.json' },
{ name: 'Quiz', emoji: '🕹️', fileName: 'quiz.json' },
{ name: 'Lead Scoring', emoji: '🏆', fileName: 'lead-scoring.json' },
{
name: 'Digital Product Payment',
emoji: '🖼️',
@ -15,16 +16,16 @@ export const templates: TemplateProps[] = [
emoji: '💬',
fileName: 'faq.json',
},
{
name: 'User Onboarding',
emoji: '🧑‍🚀',
fileName: 'onboarding.json',
isNew: true,
},
{
name: 'Conversational Resume',
emoji: '👨‍💼',
fileName: 'customer-support.json',
isComingSoon: true,
},
{
name: 'User Onboarding',
emoji: '🧑‍🚀',
fileName: 'customer-support.json',
isComingSoon: true,
},
]

View File

@ -3,4 +3,5 @@ export type TemplateProps = {
emoji: string
fileName: string
isComingSoon?: boolean
isNew?: boolean
}