Add name to NodesTable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user