forked from React-Group/interstellar_ai
chat scroll trial 1
This commit is contained in:
parent
8c14760027
commit
853967f8e7
2 changed files with 18 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
"use client"
|
||||
import React, { use, useEffect, useRef, useState } from "react";
|
||||
import ConversationFrontend from "../components/ConversationFrontend";
|
||||
import ConversationFrontend from '../components/ConversationFrontend';
|
||||
import InputFrontend from "../components/InputFrontend";
|
||||
import { sendToVoiceRecognition } from "./voice_backend"
|
||||
import axios from "axios";
|
||||
|
@ -52,6 +52,7 @@ const InputOutputBackend: React.FC = () => {
|
|||
}, [preferredCurrency, preferredLanguage, timeFormat, dateFormat, preferredMeasurement, timeZone]);
|
||||
|
||||
|
||||
const conversationRef = useRef<HTMLDivElement>(null)
|
||||
const [copyClicked, setCopyClicked] = useState(false)
|
||||
const [accessToken, setAccessToken] = useState("")
|
||||
const postWorkerRef = useRef<Worker | null>(null)
|
||||
|
@ -266,6 +267,7 @@ const InputOutputBackend: React.FC = () => {
|
|||
return (
|
||||
<>
|
||||
<ConversationFrontend
|
||||
ref={conversationRef}
|
||||
messages={messages}
|
||||
onResendClick={handleResendClick}
|
||||
onEditClick={handleEditClick}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue