🚸 (account) Improve account form and fix cyclic dependencies

This commit is contained in:
Baptiste Arnaud
2023-01-18 11:40:38 +01:00
parent c711f3660f
commit 49058da206
12 changed files with 112 additions and 154 deletions

View File

@@ -14,13 +14,13 @@ import {
Tag,
} from '@chakra-ui/react'
import { EditIcon, PlusIcon, TrashIcon } from '@/components/icons'
import { useTypebot } from '@/features/editor'
import { useTypebot } from '@/features/editor/providers/TypebotProvider/TypebotProvider'
import cuid from 'cuid'
import { Variable } from 'models'
import React, { useState, useRef, ChangeEvent, useEffect } from 'react'
import { byId, isDefined, isNotDefined } from 'utils'
import { useOutsideClick } from '@/hooks/useOutsideClick'
import { useParentModal } from '@/features/graph'
import { useParentModal } from '@/features/graph/providers/ParentModalProvider'
type Props = {
initialVariableId?: string