Add movie recommendation template

Closes #377
This commit is contained in:
Baptiste Arnaud
2023-03-09 17:37:39 +01:00
parent ddd20f6235
commit 53cdb35984
8 changed files with 697 additions and 19 deletions

View File

@@ -123,13 +123,15 @@ export const TemplatesModal = ({ isOpen, onClose, onTypebotChoose }: Props) => {
isDisabled={template.isComingSoon}
>
<HStack justifyContent="space-between" w="full">
<HStack>
<HStack overflow="hidden">
<Text>{template.emoji}</Text>
<Text>{template.name}</Text>
<Text noOfLines={0} display="block">
{template.name}
</Text>
</HStack>
{template.isNew && (
<Tag colorScheme="orange" size="sm">
<Tag colorScheme="orange" size="sm" flexShrink={0}>
New
</Tag>
)}

View File

@@ -27,4 +27,10 @@ export const templates: TemplateProps[] = [
emoji: '💬',
fileName: 'faq.json',
},
{
name: 'Movie Recommendation',
emoji: '🍿',
fileName: 'movie-recommendation.json',
isNew: true,
},
]