Reload after restart to the baseUrl

This commit is contained in:
Nicolas Mowen 2024-06-13 15:07:15 -06:00
parent ef365665de
commit 90fba2ab70

View File

@ -67,6 +67,7 @@ import {
} from "../ui/dialog";
import { TooltipPortal } from "@radix-ui/react-tooltip";
import { cn } from "@/lib/utils";
import { baseUrl } from "@/api/baseUrl";
type GeneralSettingsProps = {
className?: string;
@ -95,12 +96,12 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
useEffect(() => {
if (countdown === 0) {
window.location.href = "/";
window.location.href = baseUrl;
}
}, [countdown]);
const handleForceReload = () => {
window.location.href = "/";
window.location.href = baseUrl;
};
const Container = isDesktop ? DropdownMenu : Drawer;