From a715083989218e6b9c0332ba21ff5fe3ae1f9913 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Mon, 26 Feb 2024 16:45:07 +0000 Subject: [PATCH] feat: notifications feature flag --- .env.local.sample | 3 ++- pages/_app.tsx | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.env.local.sample b/.env.local.sample index 04f8dfd2..c906c34e 100644 --- a/.env.local.sample +++ b/.env.local.sample @@ -1,4 +1,5 @@ NEXT_PUBLIC_API_URL=http://locahost:4000 NEXT_PUBLIC_WS_URL=ws://localhost:4000/socket NEXT_PUBLIC_QRCODE_HOST=seium.org -NEXT_PUBLIC_BACKOFFICE_FEATURE_FLAG=true \ No newline at end of file +NEXT_PUBLIC_BACKOFFICE_FEATURE_FLAG=true +NEXT_PUBLIC_NOTIFICATIONS_FEATURE_FLAG=false \ No newline at end of file diff --git a/pages/_app.tsx b/pages/_app.tsx index 23612835..aa910ffe 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -8,6 +8,15 @@ import "../styles/globals.css"; import { NotifyProvider } from "@context/Notification"; function App({ Component, pageProps }) { + if (process.env.NEXT_PUBLIC_NOTIFICATIONS_FEATURE_FLAG === "false") { + return ( + +
+ + + ); + } + return (