From 4612f6c49a97afa12396c8d7f6399bbcec858f77 Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Wed, 24 Jan 2024 18:36:20 +0100 Subject: [PATCH] Add "New dashboard" Banner (#315) * Add new dashboard Banner.tsx * display on localdev and add todo note --------- Co-authored-by: Maycon Santos --- src/App.tsx | 3 ++- src/components/Banner.tsx | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 528115e..a41a211 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,6 +22,7 @@ import {SecureLoading} from "./components/Loading"; import DNS from "./views/DNS"; import Activity from "./views/Activity"; import Settings from "./views/Settings"; +import {isLocalDev, isNetBirdHosted} from "./utils/common"; const {Header, Content} = Layout; @@ -75,7 +76,7 @@ function App() { {!show && } {show && - + {(isNetBirdHosted() || isLocalDev()) && }
{ localStorage.setItem(banner_closed_key,'true'); }; - const announcement = "NetBird is now available on the App Store." + // todo: when updating this announcement, ensure to + // remove the condition on App.tsx that limits the current banner to cloud and local dev + const announcement = "Discover the new NetBird Dashboard with a brand new look and feel." const announcement_md5 = Md5.hashStr(announcement) const linkLearnMore = () => { return ( Download  + >Try it out now  ) }