WIP
This commit is contained in:
+7
-1
@@ -1,11 +1,17 @@
|
||||
import React from 'react';
|
||||
|
||||
import { Node } from '../components/nodes/Node';
|
||||
import { PrimaryTemplate } from '../components/templates/PrimaryTemplate';
|
||||
import { useAppSelector } from '../hooks/redux';
|
||||
|
||||
export const Nodes = (): JSX.Element => {
|
||||
const nodes = useAppSelector((state) => state.meshtastic.nodes);
|
||||
|
||||
return (
|
||||
<PrimaryTemplate title="Administration" tagline="Node">
|
||||
<p>Nodes</p>
|
||||
{nodes.map((node) => (
|
||||
<Node key={node.num} node={node} />
|
||||
))}
|
||||
</PrimaryTemplate>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user