Refactor components related to chatflow configuration

This commit is contained in:
Ilango
2024-03-12 22:03:44 +05:30
parent e95a780b26
commit 4a6e71058c
7 changed files with 6 additions and 6 deletions
@@ -2,12 +2,12 @@ import PropTypes from 'prop-types'
import { useState } from 'react' import { useState } from 'react'
import { createPortal } from 'react-dom' import { createPortal } from 'react-dom'
import { Box, Dialog, DialogContent, DialogTitle, Tabs, Tab } from '@mui/material' import { Box, Dialog, DialogContent, DialogTitle, Tabs, Tab } from '@mui/material'
import SpeechToText from './SpeechToText' import SpeechToText from '@/ui-component/extended/SpeechToText'
import Configuration from '@/views/chatflows/Configuration' import Configuration from '@/views/chatflows/Configuration'
import AllowedDomains from './AllowedDomains' import AllowedDomains from '@/ui-component/extended/AllowedDomains'
import ChatFeedback from './ChatFeedback' import ChatFeedback from '@/ui-component/extended/ChatFeedback'
import AnalyseFlow from './AnalyseFlow' import AnalyseFlow from '@/ui-component/extended/AnalyseFlow'
import StarterPrompts from './StarterPrompts' import StarterPrompts from '@/ui-component/extended/StarterPrompts'
const CHATFLOW_CONFIGURATION_TABS = [ const CHATFLOW_CONFIGURATION_TABS = [
{ {
@@ -11,7 +11,7 @@ import { HIDE_CANVAS_DIALOG, SHOW_CANVAS_DIALOG } from '@/store/actions'
import useNotifier from '@/utils/useNotifier' import useNotifier from '@/utils/useNotifier'
// Project imports // Project imports
import StarterPrompts from './StarterPrompts' import StarterPrompts from '@/ui-component/extended/StarterPrompts'
const StarterPromptsDialog = ({ show, dialogProps, onCancel }) => { const StarterPromptsDialog = ({ show, dialogProps, onCancel }) => {
const portalElement = document.getElementById('portal') const portalElement = document.getElementById('portal')