This commit is contained in:
Robert Brennan 2024-11-09 17:23:17 -05:00
parent f24982911d
commit 2ed1a4db21
2 changed files with 3 additions and 6 deletions

View File

@ -1,10 +1,7 @@
import { useFetcher, useRouteLoaderData } from "@remix-run/react";
import { cache } from "#/utils/cache";
import React from "react";
import { useTranslation } from "react-i18next";
import {
BaseModalTitle,
} from "./confirmation-modals/BaseModal";
import { BaseModalTitle } from "./confirmation-modals/BaseModal";
import ModalBody from "./ModalBody";
import ModalButton from "../buttons/ModalButton";
import FormFieldset from "../form/FormFieldset";

View File

@ -5,7 +5,7 @@ import OpenHands from "#/api/open-hands";
const TOKEN_KEY = "token";
const GITHUB_TOKEN_KEY = "ghToken";
const REPO_KEY = "repo"
const REPO_KEY = "repo";
const getToken = (): string => localStorage.getItem(TOKEN_KEY) ?? "";
@ -35,7 +35,7 @@ const logout = (): void => {
cache.clearAll();
posthog.reset();
OpenHands.logout();
}
};
export {
getToken,