summaryrefslogtreecommitdiff
path: root/extension/react-app/src/App.tsx
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-07-06 12:22:20 -0700
committerTy Dunn <ty@tydunn.com>2023-07-06 12:22:20 -0700
commitf495205ad623162b6a20ddb409e70b0ba5c07214 (patch)
treeff66bf5b646d238fed72e8a785915574fac8e058 /extension/react-app/src/App.tsx
parent1e6d9c23053c0ea96ca0c79e174d5551aae2a6dc (diff)
parent28e4da39c1f7056b99dca89e6959a11b86202886 (diff)
downloadsncontinue-f495205ad623162b6a20ddb409e70b0ba5c07214.tar.gz
sncontinue-f495205ad623162b6a20ddb409e70b0ba5c07214.tar.bz2
sncontinue-f495205ad623162b6a20ddb409e70b0ba5c07214.zip
Merge branch 'main' of github.com:continuedev/continue
Diffstat (limited to 'extension/react-app/src/App.tsx')
-rw-r--r--extension/react-app/src/App.tsx39
1 files changed, 22 insertions, 17 deletions
diff --git a/extension/react-app/src/App.tsx b/extension/react-app/src/App.tsx
index a51541d0..8785f88f 100644
--- a/extension/react-app/src/App.tsx
+++ b/extension/react-app/src/App.tsx
@@ -1,28 +1,33 @@
import DebugPanel from "./components/DebugPanel";
import MainTab from "./tabs/main";
-import { Provider } from "react-redux";
-import store from "./redux/store";
import WelcomeTab from "./tabs/welcome";
import ChatTab from "./tabs/chat";
import GUI from "./tabs/gui";
+import { createContext } from "react";
+import useContinueGUIProtocol from "./hooks/useWebsocket";
+import ContinueGUIClientProtocol from "./hooks/useContinueGUIProtocol";
+
+export const GUIClientContext = createContext<
+ ContinueGUIClientProtocol | undefined
+>(undefined);
function App() {
+ const client = useContinueGUIProtocol();
+
return (
- <>
- <Provider store={store}>
- <DebugPanel
- tabs={[
- {
- element: <GUI />,
- title: "GUI",
- },
- // { element: <MainTab />, title: "Debug Panel" },
- // { element: <WelcomeTab />, title: "Welcome" },
- // { element: <ChatTab />, title: "Chat" },
- ]}
- ></DebugPanel>
- </Provider>
- </>
+ <GUIClientContext.Provider value={client}>
+ <DebugPanel
+ tabs={[
+ {
+ element: <GUI />,
+ title: "GUI",
+ },
+ // { element: <MainTab />, title: "Debug Panel" },
+ // { element: <WelcomeTab />, title: "Welcome" },
+ // { element: <ChatTab />, title: "Chat" },
+ ]}
+ />
+ </GUIClientContext.Provider>
);
}