@ -1,6 +1,7 @@
|
||||
import { Seo } from '@/components/Seo'
|
||||
import { DashboardHeader } from '@/features/dashboard'
|
||||
import { useToast } from '@/hooks/useToast'
|
||||
import { useI18n } from '@/locales'
|
||||
import { Stack, Flex, Spinner } from '@chakra-ui/react'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useFolder } from '../hooks/useFolder'
|
||||
@ -8,6 +9,7 @@ import { TypebotDndProvider } from '../TypebotDndProvider'
|
||||
import { FolderContent } from './FolderContent'
|
||||
|
||||
export const FolderPage = () => {
|
||||
const t = useI18n()
|
||||
const router = useRouter()
|
||||
|
||||
const { showToast } = useToast()
|
||||
@ -16,7 +18,6 @@ export const FolderPage = () => {
|
||||
folderId: router.query.id?.toString(),
|
||||
onError: (error) => {
|
||||
showToast({
|
||||
title: "Couldn't fetch folder content",
|
||||
description: error.message,
|
||||
})
|
||||
},
|
||||
@ -24,7 +25,7 @@ export const FolderPage = () => {
|
||||
|
||||
return (
|
||||
<Stack minH="100vh">
|
||||
<Seo title="My typebots" />
|
||||
<Seo title={t('dashboard.title')} />
|
||||
<DashboardHeader />
|
||||
<TypebotDndProvider>
|
||||
{!folder ? (
|
||||
|
Reference in New Issue
Block a user