File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {SecureLoading} from "./components/Loading";
22
22
import DNS from "./views/DNS" ;
23
23
import Activity from "./views/Activity" ;
24
24
import Settings from "./views/Settings" ;
25
+ import { isLocalDev , isNetBirdHosted } from "./utils/common" ;
25
26
26
27
27
28
const { Header, Content} = Layout ;
@@ -75,7 +76,7 @@ function App() {
75
76
{ ! show && < SecureLoading padding = "3em" width = { 50 } height = { 50 } /> }
76
77
{ show &&
77
78
< Layout >
78
- < Banner />
79
+ { ( isNetBirdHosted ( ) || isLocalDev ( ) ) && < Banner /> }
79
80
< Header className = "header" style = { {
80
81
display : "flex" ,
81
82
flexDirection : "column" ,
Original file line number Diff line number Diff line change @@ -15,18 +15,20 @@ const Banner = () => {
15
15
localStorage . setItem ( banner_closed_key , 'true' ) ;
16
16
} ;
17
17
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."
19
21
20
22
const announcement_md5 = Md5 . hashStr ( announcement )
21
23
22
24
const linkLearnMore = ( ) => {
23
25
return (
24
26
< a
25
- href = "https://apps.apple.com/us/app/netbird-p2p-vpn/id6469329339 "
27
+ href = "https://preview.netbird.io/peers "
26
28
className = "font-bold underline"
27
29
target = "_blank"
28
30
rel = "noreferrer"
29
- > < Text strong style = { { color : "#ffffff" } } > Download < span aria-hidden = "true" > →</ span > </ Text > </ a >
31
+ > < Text strong style = { { color : "#ffffff" } } > Try it out now < span aria-hidden = "true" > →</ span > </ Text > </ a >
30
32
)
31
33
}
32
34
You can’t perform that action at this time.
0 commit comments