From 671335c236245bb9f55bbed8905f618f72898516 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 25 Nov 2024 17:00:34 -0800 Subject: [PATCH] github icon --- gui/src/App.tsx | 2 +- gui/src/components/svg/Github.tsx | 27 +++++++++++++++++++++++++++ gui/src/pages/error.tsx | 12 +++++++----- 3 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 gui/src/components/svg/Github.tsx diff --git a/gui/src/App.tsx b/gui/src/App.tsx index 1e34e6e15..fcd8c5135 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -84,7 +84,7 @@ function App() { const vscTheme = useVscTheme(); const submenuContextProvidersMethods = useSubmenuContextProviders(); - + // throw new Error("hahaha"); return ( { + size?: number; +} + +export function GithubIcon({ + size = 24, + className, + ...props +}: GithubIconProps) { + return ( + + + + ); +} diff --git a/gui/src/pages/error.tsx b/gui/src/pages/error.tsx index 885043989..1f36f3c1f 100644 --- a/gui/src/pages/error.tsx +++ b/gui/src/pages/error.tsx @@ -3,6 +3,7 @@ import { useNavigate, useRouteError } from "react-router-dom"; import { newSession } from "../redux/slices/stateSlice"; import ContinueButton from "../components/mainInput/ContinueButton"; import { vscBackground } from "../components"; +import { GithubIcon } from "../components/svg/Github"; export default function ErrorPage() { const error: any = useRouteError(); @@ -11,17 +12,14 @@ export default function ErrorPage() { const navigate = useNavigate(); return ( -
+

Error in Continue React App

{error.statusText || error.message}


Click below to Continue

+
{ dispatch(newSession()); localStorage.removeItem("persist:root"); + localStorage.removeItem("inputHistory_chat"); + // localStorage.removeItem("showTutorialCard"); + // localStorage.removeItem("onboardingStatus"); + // localStorage.removeItem("lastSessionId"); navigate("/"); }} >