Open Terminal and run NetBird
+
+ Open Terminal and run NetBird{" "}
+ {showSetupKeyInfo &&
{getNetBirdUpCommand()}
@@ -143,7 +154,10 @@ export default function MacOSTab({ setupKey }: Readonly) {
Run NetBird {!setupKey && "and log in the browser"}
+
+ Run NetBird {!setupKey && "and log in the browser"}
+ {showSetupKeyInfo &&
{getNetBirdUpCommand()}
@@ -200,7 +214,10 @@ export default function MacOSTab({ setupKey }: Readonly) {
Run NetBird {!setupKey && "and log in the browser"}
+
+ Run NetBird {!setupKey && "and log in the browser"}
+ {showSetupKeyInfo &&
{getNetBirdUpCommand()}
diff --git a/src/modules/setup-netbird-modal/SetupModal.tsx b/src/modules/setup-netbird-modal/SetupModal.tsx
index 99923104..ead19bb9 100644
--- a/src/modules/setup-netbird-modal/SetupModal.tsx
+++ b/src/modules/setup-netbird-modal/SetupModal.tsx
@@ -115,26 +115,22 @@ export function SetupModalContent({
Linux
- {!showOnlyRoutingPeerOS && (
- <>
-
-
- Windows
-
-
-
- macOS
-
- >
- )}
+
+
+ Windows
+
+
+
+ macOS
+
{!setupKey && (
<>
@@ -171,8 +167,14 @@ export function SetupModalContent({
setupKey={setupKey}
showSetupKeyInfo={showOnlyRoutingPeerOS}
/>
-
-
+
+
{!setupKey && (
<>
diff --git a/src/modules/setup-netbird-modal/WindowsTab.tsx b/src/modules/setup-netbird-modal/WindowsTab.tsx
index 1a6a01ba..3bf07c55 100644
--- a/src/modules/setup-netbird-modal/WindowsTab.tsx
+++ b/src/modules/setup-netbird-modal/WindowsTab.tsx
@@ -7,13 +7,20 @@ import { DownloadIcon, PackageOpenIcon } from "lucide-react";
import Link from "next/link";
import React from "react";
import { OperatingSystem } from "@/interfaces/OperatingSystem";
-import { SetupKeyParameter } from "@/modules/setup-netbird-modal/SetupModal";
+import {
+ RoutingPeerSetupKeyInfo,
+ SetupKeyParameter,
+} from "@/modules/setup-netbird-modal/SetupModal";
type Props = {
setupKey?: string;
+ showSetupKeyInfo?: boolean;
};
-export default function WindowsTab({ setupKey }: Readonly) {
+export default function WindowsTab({
+ setupKey,
+ showSetupKeyInfo,
+}: Readonly) {
return (
@@ -51,7 +58,11 @@ export default function WindowsTab({ setupKey }: Readonly) {
{setupKey ? (
- Open Command-line and run NetBird
+
+ Open Command-line and run NetBird{" "}
+ {showSetupKeyInfo && }
+
+
{getNetBirdUpCommand()}