Rename ChatSidebar to ChatView

This commit is contained in:
Saoud Rizwan
2024-07-07 11:36:02 -04:00
parent 56bafe9f59
commit 21203e836b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react"
import "./App.css"
import ChatSidebar from "./components/ChatSidebar"
import ChatView from "./components/ChatView"
import SettingsView from "./components/SettingsView"
import { ExtensionMessage } from "@shared/ExtensionMessage"
import WelcomeView from "./components/WelcomeView"
@@ -64,7 +64,7 @@ const App: React.FC = () => {
onDone={() => setShowSettings(false)}
/>
) : (
<ChatSidebar />
<ChatView />
)}
</>
)

View File

@@ -10,7 +10,7 @@ interface Message {
sender: "user" | "assistant"
}
const ChatSidebar = () => {
const ChatView = () => {
const [messages, setMessages] = useState<Message[]>([])
const [inputValue, setInputValue] = useState("")
const messagesEndRef = useRef<HTMLDivElement>(null)
@@ -130,4 +130,4 @@ const ChatSidebar = () => {
)
}
export default ChatSidebar
export default ChatView