From 33da7e9df3a2546b0f208bd3b1d1f268e343cead Mon Sep 17 00:00:00 2001 From: sct Date: Fri, 30 Oct 2020 09:02:20 +0000 Subject: [PATCH] feat(frontend): alpha notice --- src/components/Layout/index.tsx | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 1e5f22444..529861fde 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -4,9 +4,11 @@ import UserDropdown from './UserDropdown'; import Sidebar from './Sidebar'; import Notifications from './Notifications'; import LanguagePicker from './LanguagePicker'; +import { useRouter } from 'next/router'; const Layout: React.FC = ({ children }) => { const [isSidebarOpen, setSidebarOpen] = useState(false); + const router = useRouter(); return (
@@ -49,6 +51,43 @@ const Layout: React.FC = ({ children }) => { >
+ {router.pathname === '/' && ( +
+
+
+ + + +
+
+

+ This is ALPHA software. Almost everything is bound to be + nearly broken or unstable. Please report issues to the + Overseerr Github! +

+

+ + Github → + +

+
+
+
+ )} {children}