forked from React-Group/interstellar_ai
npm build fixes half
This commit is contained in:
parent
61faa7612c
commit
db4a24b5cd
4 changed files with 9 additions and 28 deletions
|
@ -2,14 +2,10 @@
|
|||
import React from 'react';
|
||||
import InputOutputBackend from '../backend/InputOutputHandler';
|
||||
|
||||
interface AIProps{
|
||||
selectedIndex:number
|
||||
}
|
||||
|
||||
const AI: React.FC<AIProps> = ({selectedIndex}) => {
|
||||
const AI: React.FC = () => {
|
||||
return (
|
||||
<div className="ai-container">
|
||||
<InputOutputBackend selectedIndex={selectedIndex}/>
|
||||
<InputOutputBackend />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -6,6 +6,8 @@ const History: React.FC = () => {
|
|||
const [isEditing, setIsEditing] = useState(false);
|
||||
const [inputValue, setInputValue] = useState<string>('');
|
||||
|
||||
setChatHistory(chatHistory)
|
||||
|
||||
const handleEditButtonClick = () => {
|
||||
setIsEditing(true);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue