Skip to content

Commit

Permalink
display serial number on peer information
Browse files Browse the repository at this point in the history
Signed-off-by: Edouard Vanbelle <[email protected]>
  • Loading branch information
EdouardVanbelle committed Nov 26, 2024
1 parent c7775ad commit 2aa7b0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/(dashboard)/peer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import dayjs from "dayjs";
import { isEmpty, trim } from "lodash";
import {
Cpu,
Barcode,
FlagIcon,
Globe,
History,
Expand Down Expand Up @@ -429,6 +430,17 @@ function PeerInformationCard({ peer }: { peer: Peer }) {
}
value={peer.os}
/>

<Card.ListItem
label={
<>
<Barcode size={16} />
Serial Number
</>
}
value={peer.serial_number}
/>

<Card.ListItem
label={
<>
Expand Down Expand Up @@ -465,6 +477,7 @@ function PeerInformationCard({ peer }: { peer: Peer }) {
}
value={peer.ui_version?.replace("netbird-desktop-ui/", "")}
/>

</Card.List>
</Card>
);
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/Peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ export interface Peer {
city_name: string;
country_code: string;
connection_ip: string;
serial_number: string;
}

0 comments on commit 2aa7b0c

Please sign in to comment.