Skip to content

Commit 4612f6c

Browse files
heisbrotmlsmaycon
andauthored
Add "New dashboard" Banner (#315)
* Add new dashboard Banner.tsx * display on localdev and add todo note --------- Co-authored-by: Maycon Santos <[email protected]>
1 parent a3a0e63 commit 4612f6c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {SecureLoading} from "./components/Loading";
2222
import DNS from "./views/DNS";
2323
import Activity from "./views/Activity";
2424
import Settings from "./views/Settings";
25+
import {isLocalDev, isNetBirdHosted} from "./utils/common";
2526

2627

2728
const {Header, Content} = Layout;
@@ -75,7 +76,7 @@ function App() {
7576
{!show && <SecureLoading padding="3em" width={50} height={50}/>}
7677
{show &&
7778
<Layout>
78-
<Banner/>
79+
{(isNetBirdHosted() || isLocalDev()) && <Banner/>}
7980
<Header className="header" style={{
8081
display: "flex",
8182
flexDirection: "column",

src/components/Banner.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ const Banner = () => {
1515
localStorage.setItem(banner_closed_key,'true');
1616
};
1717

18-
const announcement = "NetBird is now available on the App Store."
18+
// todo: when updating this announcement, ensure to
19+
// remove the condition on App.tsx that limits the current banner to cloud and local dev
20+
const announcement = "Discover the new NetBird Dashboard with a brand new look and feel."
1921

2022
const announcement_md5 = Md5.hashStr(announcement)
2123

2224
const linkLearnMore = () => {
2325
return (
2426
<a
25-
href="https://apps.apple.com/us/app/netbird-p2p-vpn/id6469329339"
27+
href="https://preview.netbird.io/peers"
2628
className="font-bold underline"
2729
target="_blank"
2830
rel="noreferrer"
29-
><Text strong style={{color: "#ffffff"}}>Download&nbsp;<span aria-hidden="true">&rarr;</span></Text></a>
31+
><Text strong style={{color: "#ffffff"}}>Try it out now&nbsp;<span aria-hidden="true">&rarr;</span></Text></a>
3032
)
3133
}
3234

0 commit comments

Comments
 (0)