2
0

fix(dashboard): 🐛 Import from file button

This commit is contained in:
Baptiste Arnaud
2022-02-14 10:39:55 +01:00
parent 80c15f9491
commit 5a060c7f7e
4 changed files with 24 additions and 26 deletions

View File

@ -7,8 +7,7 @@ import {
Stack,
useToast,
} from '@chakra-ui/react'
import { MoreButton } from 'components/dashboard/FolderContent/MoreButton'
import { ImportFromFileMenuItem } from 'components/templates/ImportFileMenuItem'
import { CreateTypebotMoreButton } from 'components/templates/ImportFileMenuItem'
import { TemplateButton } from 'components/templates/TemplateButton'
import { useUser } from 'contexts/UserContext'
import { Typebot } from 'models'
@ -63,11 +62,7 @@ export const TemplatesContent = () => {
>
Start from scratch
</Button>
<MoreButton>
<ImportFromFileMenuItem onNewTypebot={handleCreateSubmit}>
Import from file
</ImportFromFileMenuItem>
</MoreButton>
<CreateTypebotMoreButton onNewTypebot={handleCreateSubmit} />
</Flex>
<Divider />
<Text>Or start from a template</Text>