From 21203e836b303bb7bc5449116ebbf7734ba9ebfa Mon Sep 17 00:00:00 2001
From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
Date: Sun, 7 Jul 2024 11:36:02 -0400
Subject: [PATCH] Rename ChatSidebar to ChatView
---
webview-ui/src/App.tsx | 4 ++--
webview-ui/src/components/{ChatSidebar.tsx => ChatView.tsx} | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
rename webview-ui/src/components/{ChatSidebar.tsx => ChatView.tsx} (98%)
diff --git a/webview-ui/src/App.tsx b/webview-ui/src/App.tsx
index acd50b7..18c5cb0 100644
--- a/webview-ui/src/App.tsx
+++ b/webview-ui/src/App.tsx
@@ -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)}
/>
) : (
-
+
)}
>
)
diff --git a/webview-ui/src/components/ChatSidebar.tsx b/webview-ui/src/components/ChatView.tsx
similarity index 98%
rename from webview-ui/src/components/ChatSidebar.tsx
rename to webview-ui/src/components/ChatView.tsx
index e9191e4..685b627 100644
--- a/webview-ui/src/components/ChatSidebar.tsx
+++ b/webview-ui/src/components/ChatView.tsx
@@ -10,7 +10,7 @@ interface Message {
sender: "user" | "assistant"
}
-const ChatSidebar = () => {
+const ChatView = () => {
const [messages, setMessages] = useState([])
const [inputValue, setInputValue] = useState("")
const messagesEndRef = useRef(null)
@@ -130,4 +130,4 @@ const ChatSidebar = () => {
)
}
-export default ChatSidebar
+export default ChatView