Browse Source
Merge pull request #429 from skeemer/add-avatar-to-node-table
Add Avator to nodes table
pull/434/head
Dan Ditomaso
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
4 deletions
-
src/pages/Nodes.tsx
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
import Footer from "@app/components/UI/Footer"; |
|
|
|
import { useAppStore } from "@app/core/stores/appStore"; |
|
|
|
import { Sidebar } from "@components/Sidebar.tsx"; |
|
|
|
import { Avatar } from "@components/UI/Avatar.tsx"; |
|
|
|
import { Button } from "@components/UI/Button.tsx"; |
|
|
|
import { Mono } from "@components/generic/Mono.tsx"; |
|
|
|
import { Table } from "@components/generic/Table/index.tsx"; |
|
|
|
@ -56,10 +57,9 @@ const NodesPage = (): JSX.Element => { |
|
|
|
{ title: "Remove", type: "normal", sortable: false }, |
|
|
|
]} |
|
|
|
rows={filteredNodes.map((node) => [ |
|
|
|
<span |
|
|
|
key={node.num} |
|
|
|
className="h-3 w-3 rounded-full bg-accent" |
|
|
|
/>, |
|
|
|
<div key={node.num}> |
|
|
|
<Avatar text={node.user?.shortName.toString() ?? "UNK"}/> |
|
|
|
</div>, |
|
|
|
|
|
|
|
<h1 key="header"> |
|
|
|
{node.user?.longName ?? |
|
|
|
|