From 5e5df376ff76a3fcd9c3a769492f574ebb5f95cb Mon Sep 17 00:00:00 2001 From: RonanCraft Date: Wed, 22 May 2024 23:19:14 -0400 Subject: [PATCH] open vs get... --- package.json | 3 +- src/App.tsx | 14 ++++---- src/api/{index.js => index.tsx} | 8 +++-- src/components/home/NavBar.tsx | 17 +++++++--- src/components/plugins/Plugin.tsx | 2 +- src/context/ThemeContext.tsx | 6 +++- src/context/UserContext.tsx | 53 +++++++++++++++++++++++++++++++ 7 files changed, 87 insertions(+), 16 deletions(-) rename src/api/{index.js => index.tsx} (65%) create mode 100644 src/context/UserContext.tsx diff --git a/package.json b/package.json index b3fb384..048c9bb 100644 --- a/package.json +++ b/package.json @@ -54,5 +54,6 @@ "whitelist": [ "API_URL" ] - } + }, + "proxy": "http://localhost:3001" } diff --git a/src/App.tsx b/src/App.tsx index ec25d07..f177f4a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,6 +4,7 @@ import { Outlet } from "react-router-dom"; import Nav from "./components/home/NavBar"; import { ThemeProvider } from "./context/ThemeContext"; import Footer from "./components/home/Footer"; +import UserProvider from "./context/UserContext"; // const client = new ApolloClient({ // uri: "/graphql", @@ -11,13 +12,14 @@ import Footer from "./components/home/Footer"; // }); function App() { - console.log("Welcome to RonanServices! Want to contribute?"); return ( - -