adding a nicer layout frame, setting up for pages

This commit is contained in:
Ginger Wong
2020-10-22 01:03:15 -07:00
parent 81e25d3540
commit 2b278c45e1
6 changed files with 26 additions and 66 deletions

View File

@@ -3,9 +3,6 @@ import { Table } from 'antd';
import { CONNECTED_CLIENTS, fetchData, FETCH_INTERVAL } from '../utils/apis';
export default function HardwareInfo() {
const [clients, setClients] = useState({});
/*
geo data looks like this
"geo": {
@@ -15,6 +12,8 @@ geo data looks like this
}
*/
export default function HardwareInfo() {
const [clients, setClients] = useState([]);
const getInfo = async () => {
try {
const result = await fetchData(CONNECTED_CLIENTS);
@@ -72,6 +71,7 @@ geo data looks like this
},
];
console.log({clients})
return (
<div>
<h2>Connected Clients</h2>