Skip to content

Commit

Permalink
Cursor pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Sep 19, 2024
1 parent 56ac1d5 commit a2b9a33
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ export const NodesPage = (): JSX.Element => {
return () => {
connection?.events.onTraceRoutePacket.unsubscribe(handleTraceroute);
};
}, [
connection?.events.onTraceRoutePacket.subscribe,
connection?.events.onTraceRoutePacket.unsubscribe,
]);
}, [connection]);

const handleTraceroute = useCallback(
(traceroute: Types.PacketMetadata<Protobuf.Mesh.RouteDiscovery>) => {
Expand Down Expand Up @@ -70,7 +67,7 @@ export const NodesPage = (): JSX.Element => {
]}
rows={filteredNodes.map((node) => [
<Hashicon key="icon" size={24} value={node.num.toString()} />,
<h1 key="header" onMouseDown={() => setSelectedNode(node)}>
<h1 className="cursor-pointer" key="header" onMouseDown={() => setSelectedNode(node)}>
{node.user?.longName ??
(node.user?.macaddr
? `Meshtastic ${base16
Expand Down Expand Up @@ -104,7 +101,7 @@ export const NodesPage = (): JSX.Element => {
{node.user?.publicKey && node.user?.publicKey.length > 0 ? (
<LockIcon className="text-green-600" />
) : (
<LockOpenIcon className="text-yellow-300" />
<LockOpenIcon className="text-yellow-300 mx-auto" />
)}
</Mono>,
<Mono key="hops">
Expand Down

0 comments on commit a2b9a33

Please sign in to comment.