fix: remove unused imports
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
This commit is contained in:
parent
427691290b
commit
f9c99dbd32
@ -1,9 +1,7 @@
|
|||||||
import { useState, useRef, useEffect, useCallback } from 'react'
|
import { useState, useRef, useEffect, useCallback } from 'react'
|
||||||
import { Input, Button, theme, Typography, App } from 'antd'
|
import { Input, Button, Typography, App } from 'antd'
|
||||||
import {
|
import {
|
||||||
SendOutlined, PlusOutlined, ToolOutlined,
|
PlusOutlined, ToolOutlined, DeleteOutlined, MessageOutlined, ArrowUpOutlined,
|
||||||
DeleteOutlined, StopOutlined, MessageOutlined,
|
|
||||||
ArrowUpOutlined,
|
|
||||||
} from '@ant-design/icons'
|
} from '@ant-design/icons'
|
||||||
import { streamChat, resolveApproval, type StreamEvent } from '@/services/ai-chat'
|
import { streamChat, resolveApproval, type StreamEvent } from '@/services/ai-chat'
|
||||||
import {
|
import {
|
||||||
@ -35,7 +33,6 @@ function ChatPage() {
|
|||||||
const abortRef = useRef<AbortController | null>(null)
|
const abortRef = useRef<AbortController | null>(null)
|
||||||
const messagesEndRef = useRef<HTMLDivElement>(null)
|
const messagesEndRef = useRef<HTMLDivElement>(null)
|
||||||
const editInputRef = useRef<any>(null)
|
const editInputRef = useRef<any>(null)
|
||||||
const { token } = theme.useToken()
|
|
||||||
|
|
||||||
const loadConversations = useCallback(async () => { try { setConversations(await listConversations()) } catch {} }, [])
|
const loadConversations = useCallback(async () => { try { setConversations(await listConversations()) } catch {} }, [])
|
||||||
useEffect(() => { loadConversations() }, [loadConversations])
|
useEffect(() => { loadConversations() }, [loadConversations])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user