From f3f9704c6fcb2ebabb12c03f79ddade69f35808f Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Fri, 8 May 2026 17:55:41 +0200 Subject: [PATCH] update about --- .../src/modules/settings/SettingsAbout.tsx | 99 ++++++++++--------- 1 file changed, 51 insertions(+), 48 deletions(-) diff --git a/client/ui-wails/frontend/src/modules/settings/SettingsAbout.tsx b/client/ui-wails/frontend/src/modules/settings/SettingsAbout.tsx index 4274312c9..e2ae15a8a 100644 --- a/client/ui-wails/frontend/src/modules/settings/SettingsAbout.tsx +++ b/client/ui-wails/frontend/src/modules/settings/SettingsAbout.tsx @@ -1,6 +1,6 @@ import { Browser } from "@wailsio/runtime"; import { Update as UpdateSvc } from "@bindings/services"; -import netbirdAppIcon from "@/assets/logos/netbird-app-icon.svg"; +import netbirdFull from "@/assets/logos/netbird-full.svg"; import pkg from "../../../package.json"; import { useStatus } from "@/hooks/useStatus"; import { Button } from "@/components/Button"; @@ -16,6 +16,16 @@ function openUrl(url: string) { void Browser.OpenURL(url).catch(() => window.open(url, "_blank")); } +function formatLastChecked(date: Date) { + return date.toLocaleString(undefined, { + year: "numeric", + month: "short", + day: "numeric", + hour: "2-digit", + minute: "2-digit", + }); +} + export function SettingsAbout() { const { status } = useStatus(); const guiVersion = pkg.version; @@ -30,28 +40,23 @@ export function SettingsAbout() { }; return ( -
-
- {"NetBird"} -
-

NetBird

-
-
GUI v{guiVersion}
-
Client v{daemonVersion}
-
-
+
+ {"NetBird"} +
+

+ NetBird Client v{daemonVersion} +

+

GUI v{guiVersion}

- {updateVersion && ( + {updateVersion ? (
@@ -65,47 +70,45 @@ export function SettingsAbout() { `https://github.com/netbirdio/netbird/releases/tag/v${updateVersion}`, ) } - className={"text-xs text-netbird hover:underline"} + className={ + "text-sm text-netbird hover:underline hover:underline-offset-4 hover:decoration-[0.5px] font-medium" + } > What's new?
- +
+ ) : ( +
+

+ Last checked for updates on {formatLastChecked(new Date())} +

+
)} -

+

© {new Date().getFullYear()} NetBird. All Rights Reserved.

- {LEGAL_LINKS.map((link, i) => ( - - {i > 0 && ( - - · - - )} - - + {LEGAL_LINKS.map((link) => ( + ))}