error page cleanup
This commit is contained in:
parent
9935a08e37
commit
b9bfaa80c3
1 changed files with 1 additions and 50 deletions
|
|
@ -1,61 +1,12 @@
|
|||
import { useDispatch } from "react-redux";
|
||||
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/GithubIcon";
|
||||
// import { useState } from "react";
|
||||
import { DiscordIcon } from "../components/svg/DiscordIcon";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
import { IdeMessengerContext } from "../context/IdeMessenger";
|
||||
import { Button, SecondaryButton } from "../components";
|
||||
import ContinueButton from "../components/mainInput/ContinueButton";
|
||||
import {
|
||||
ArrowPathIcon,
|
||||
ArrowPathRoundedSquareIcon,
|
||||
FlagIcon,
|
||||
} from "@heroicons/react/24/outline";
|
||||
import Loader from "../components/loaders/Loader";
|
||||
import RingLoader from "../components/loaders/RingLoader";
|
||||
|
||||
// const GITHUB_LINK = "https://github.com/continuedev/continue/issues/new/choose";
|
||||
// const DISCORD_LINK = "https://discord.com/invite/EfJEfdFnDQ";
|
||||
|
||||
// export default function ErrorPage() {
|
||||
// const error: any = useRouteError();
|
||||
// console.error(error);
|
||||
// const dispatch = useDispatch();
|
||||
// const navigate = useNavigate();
|
||||
|
||||
// return (
|
||||
// <div className="text-center" style={{ backgroundColor: vscBackground }}>
|
||||
// <h1>Error in Continue React App</h1>
|
||||
// <p>
|
||||
// <i>{error.statusText || error.message}</i>
|
||||
// </p>
|
||||
// <br />
|
||||
// <p>Click below to Continue</p>
|
||||
|
||||
// <br />
|
||||
// <ContinueButton
|
||||
// disabled={false}
|
||||
// showStop={false}
|
||||
// onClick={() => {
|
||||
// dispatch(newSession());
|
||||
// localStorage.removeItem("persist:root");
|
||||
// localStorage.removeItem("inputHistory_chat");
|
||||
// // localStorage.removeItem("showTutorialCard");
|
||||
// // localStorage.removeItem("onboardingStatus");
|
||||
// // localStorage.removeItem("lastSessionId");
|
||||
// navigate("/");
|
||||
// }}
|
||||
// ></ContinueButton>
|
||||
|
||||
// <GithubIcon />
|
||||
// <DiscordIcon />
|
||||
// </div>
|
||||
// );
|
||||
// }
|
||||
import { ArrowPathIcon, FlagIcon } from "@heroicons/react/24/outline";
|
||||
|
||||
const GITHUB_LINK = "https://github.com/continuedev/continue/issues/new/choose";
|
||||
const DISCORD_LINK = "https://discord.com/invite/EfJEfdFnDQ";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue