♻️ (builder) Remove barrel export and flatten folder arch
This commit is contained in:
@@ -2,13 +2,14 @@ import React from 'react'
|
||||
import { HStack, Flex, Button, useDisclosure } from '@chakra-ui/react'
|
||||
import { HardDriveIcon, SettingsIcon } from '@/components/icons'
|
||||
import { signOut } from 'next-auth/react'
|
||||
import { useUser } from '@/features/account'
|
||||
import { useWorkspace, WorkspaceDropdown } from '@/features/workspace'
|
||||
import { useUser } from '@/features/account/hooks/useUser'
|
||||
import { isNotDefined } from '@typebot.io/lib'
|
||||
import Link from 'next/link'
|
||||
import { WorkspaceSettingsModal } from '@/features/workspace'
|
||||
import { EmojiOrImageIcon } from '@/components/EmojiOrImageIcon'
|
||||
import { useScopedI18n } from '@/locales'
|
||||
import { useWorkspace } from '@/features/workspace/WorkspaceProvider'
|
||||
import { WorkspaceDropdown } from '@/features/workspace/components/WorkspaceDropdown'
|
||||
import { WorkspaceSettingsModal } from '@/features/workspace/components/WorkspaceSettingsModal'
|
||||
|
||||
export const DashboardHeader = () => {
|
||||
const scopedT = useScopedI18n('dashboard.header')
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import { Seo } from '@/components/Seo'
|
||||
import { useUser } from '@/features/account'
|
||||
import { useUser } from '@/features/account/hooks/useUser'
|
||||
import {
|
||||
PreCheckoutModal,
|
||||
PreCheckoutModalProps,
|
||||
} from '@/features/billing/components/PreCheckoutModal'
|
||||
import { TypebotDndProvider, FolderContent } from '@/features/folders'
|
||||
import { ParentModalProvider } from '@/features/graph'
|
||||
import { useWorkspace } from '@/features/workspace'
|
||||
import { useWorkspace } from '@/features/workspace/WorkspaceProvider'
|
||||
import { useScopedI18n } from '@/locales'
|
||||
import { Stack, VStack, Spinner, Text } from '@chakra-ui/react'
|
||||
import { Plan } from '@typebot.io/prisma'
|
||||
@@ -14,6 +12,9 @@ import { useRouter } from 'next/router'
|
||||
import { useState, useEffect } from 'react'
|
||||
import { guessIfUserIsEuropean } from '@typebot.io/lib/pricing'
|
||||
import { DashboardHeader } from './DashboardHeader'
|
||||
import { FolderContent } from '@/features/folders/components/FolderContent'
|
||||
import { TypebotDndProvider } from '@/features/folders/TypebotDndProvider'
|
||||
import { ParentModalProvider } from '@/features/graph/providers/ParentModalProvider'
|
||||
|
||||
export const DashboardPage = () => {
|
||||
const scopedT = useScopedI18n('dashboard')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { chakra, useColorModeValue } from '@chakra-ui/react'
|
||||
import { Popup } from '@typebot.io/react'
|
||||
import { useUser } from '@/features/account'
|
||||
import { useUser } from '@/features/account/hooks/useUser'
|
||||
import { Typebot } from '@typebot.io/schemas'
|
||||
import React, { useEffect, useRef, useState } from 'react'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
Reference in New Issue
Block a user