npm build fixes half

This commit is contained in:
YasinOnm08 2024-10-09 14:01:48 +02:00
parent 61faa7612c
commit db4a24b5cd
4 changed files with 9 additions and 28 deletions

View file

@ -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>
);
};

View file

@ -6,6 +6,8 @@ const History: React.FC = () => {
const [isEditing, setIsEditing] = useState(false);
const [inputValue, setInputValue] = useState<string>('');
setChatHistory(chatHistory)
const handleEditButtonClick = () => {
setIsEditing(true);
};