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>