From eebe548d8839f8a9490f2bac1e7e32606424edc1 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Tue, 7 Oct 2025 23:48:29 +0300 Subject: [PATCH] Disable home page in React app --- frontend/src/App.tsx | 2 +- frontend/src/pages/HomePage.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8177b51..15466af 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -31,7 +31,7 @@ export default function App() {
- } /> + z} /> } /> } /> } /> diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 4ab16a4..76632df 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -1,5 +1,6 @@ -import { useNavigate } from "react-router-dom"; +import { Navigate, useNavigate } from "react-router-dom"; import { useAppState } from "./app/ui/state"; +import { isElectron } from "./app/electron/electron"; function GitHubLink({ children }: { children: React.ReactNode }) { return ( @@ -23,7 +24,11 @@ export default function HomePage() { } else { navigate("/login"); } - }; + } + + if (isElectron) { + return ; + } return (