@@ -23,7 +23,6 @@ import Separator from "@components/Separator";
2323import FullScreenLoading from "@components/ui/FullScreenLoading" ;
2424import LoginExpiredBadge from "@components/ui/LoginExpiredBadge" ;
2525import TextWithTooltip from "@components/ui/TextWithTooltip" ;
26- import { getOperatingSystem } from "@hooks/useOperatingSystem" ;
2726import useRedirect from "@hooks/useRedirect" ;
2827import useFetchApi from "@utils/api" ;
2928import { cn } from "@utils/helpers" ;
@@ -57,7 +56,6 @@ import PeerProvider, { usePeer } from "@/contexts/PeerProvider";
5756import RoutesProvider from "@/contexts/RoutesProvider" ;
5857import { useLoggedInUser } from "@/contexts/UsersProvider" ;
5958import { useHasChanges } from "@/hooks/useHasChanges" ;
60- import { OperatingSystem } from "@/interfaces/OperatingSystem" ;
6159import type { Peer } from "@/interfaces/Peer" ;
6260import PageContainer from "@/layouts/PageContainer" ;
6361import useGroupHelper from "@/modules/groups/useGroupHelper" ;
@@ -107,14 +105,6 @@ function PeerOverview() {
107105 peer,
108106 } ) ;
109107
110- /**
111- * Check the operating system of the peer, if it is linux, then show the routes table, otherwise hide it.
112- */
113- const isLinux = useMemo ( ( ) => {
114- const operatingSystem = getOperatingSystem ( peer . os ) ;
115- return operatingSystem == OperatingSystem . LINUX ;
116- } , [ peer . os ] ) ;
117-
118108 /**
119109 * Detect if there are changes in the peer information, if there are changes, then enable the save button.
120110 */
@@ -331,7 +321,7 @@ function PeerOverview() {
331321 </ div >
332322 </ div >
333323
334- { isLinux && ! isUser ? (
324+ { ! isUser ? (
335325 < >
336326 < Separator />
337327 < PeerNetworkRoutesSection peer = { peer } />
@@ -385,14 +375,20 @@ function PeerInformationCard({ peer }: Readonly<{ peer: Peer }>) {
385375
386376 < Card . ListItem
387377 copy
388- copyText = { "Domain name " }
378+ copyText = { "DNS label " }
389379 label = {
390380 < >
391381 < Globe size = { 16 } />
392382 Domain Name
393383 </ >
394384 }
385+ className = {
386+ peer ?. extra_dns_labels && peer . extra_dns_labels . length > 0
387+ ? "items-start"
388+ : ""
389+ }
395390 value = { peer . dns_label }
391+ extraText = { peer ?. extra_dns_labels }
396392 />
397393
398394 < Card . ListItem
0 commit comments