♻️ Re-organize workspace folders
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
isFreePlan,
|
||||
} from '@/features/billing'
|
||||
import { useWorkspace } from '@/features/workspace'
|
||||
import { Plan } from 'db'
|
||||
import { Plan } from '@typebot.io/prisma'
|
||||
import React from 'react'
|
||||
import { useScopedI18n } from '@/locales'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DashboardFolder } from 'db'
|
||||
import { DashboardFolder } from '@typebot.io/prisma'
|
||||
import {
|
||||
Button,
|
||||
Editable,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DashboardFolder, WorkspaceRole } from 'db'
|
||||
import { DashboardFolder, WorkspaceRole } from '@typebot.io/prisma'
|
||||
import {
|
||||
Flex,
|
||||
Heading,
|
||||
|
||||
@@ -18,7 +18,7 @@ import { ConfirmModal } from '@/components/ConfirmModal'
|
||||
import { GripIcon } from '@/components/icons'
|
||||
import { useTypebotDnd } from '../TypebotDndProvider'
|
||||
import { useDebounce } from 'use-debounce'
|
||||
import { Plan } from 'db'
|
||||
import { Plan } from '@typebot.io/prisma'
|
||||
import { useWorkspace } from '@/features/workspace'
|
||||
import { useToast } from '@/hooks/useToast'
|
||||
import { isMobile } from '@/utils/helpers'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { fetcher } from '@/utils/helpers'
|
||||
import { DashboardFolder } from 'db'
|
||||
import { DashboardFolder } from '@typebot.io/prisma'
|
||||
import useSWR from 'swr'
|
||||
|
||||
export const useFolder = ({
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { fetcher } from '@/utils/helpers'
|
||||
import { DashboardFolder } from 'db'
|
||||
import { DashboardFolder } from '@typebot.io/prisma'
|
||||
import { stringify } from 'qs'
|
||||
import useSWR from 'swr'
|
||||
import { env } from 'utils'
|
||||
import { env } from '@typebot.io/lib'
|
||||
|
||||
export const useFolders = ({
|
||||
parentId,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { DashboardFolder } from 'db'
|
||||
import { sendRequest } from 'utils'
|
||||
import { DashboardFolder } from '@typebot.io/prisma'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const createFolderQuery = async (
|
||||
workspaceId: string,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { sendRequest } from 'utils'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const deleteFolderQuery = async (id: string) =>
|
||||
sendRequest({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Typebot } from 'db'
|
||||
import { sendRequest } from 'utils'
|
||||
import { Typebot } from '@typebot.io/prisma'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const patchTypebotQuery = async (
|
||||
id: string,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { DashboardFolder } from 'db'
|
||||
import { sendRequest } from 'utils'
|
||||
import { DashboardFolder } from '@typebot.io/prisma'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const updateFolderQuery = async (
|
||||
id: string,
|
||||
|
||||
Reference in New Issue
Block a user