Add name to NodesTable

This commit is contained in:
Yana
2025-01-15 19:27:22 +02:00
parent 98ccf9e37f
commit ea5ec0733c
2 changed files with 12 additions and 0 deletions
@@ -125,6 +125,17 @@ const NodeTable = ({ nodes }: { nodes: MappedNymNodes }) => {
const columns: MRT_ColumnDef<MappedNymNode>[] = useMemo(
() => [
{
id: "name",
header: "",
Header: <ColumnHeading>Name</ColumnHeading>,
accessorKey: "name",
Cell: ({ row }) => (
<Stack spacing={1}>
<Typography variant="body4">{row.original.name || "-"}</Typography>
</Stack>
),
},
{
id: "node",
header: "",
@@ -5,6 +5,7 @@ import NodeTable from "./NodeTable";
const mappedNymNodes = (nodes: IObservatoryNode[]) =>
nodes.map((node) => {
return {
name: node.self_description.moniker,
nodeId: node.node_id,
identity_key: node.identity_key,
countryCode: node.description.auxiliary_details.location || null,