add a hook to track window resize so we can dynamically size charts; default highlight Home link in nav; some typescript fixes
This commit is contained in:
@@ -35,7 +35,6 @@ export default function ViewersOverTime() {
|
||||
|
||||
try {
|
||||
const result = await fetchData(CONNECTED_CLIENTS);
|
||||
console.log("result", result);
|
||||
setClients(result);
|
||||
} catch (error) {
|
||||
console.log("==== error", error);
|
||||
@@ -71,7 +70,6 @@ export default function ViewersOverTime() {
|
||||
return "no info";
|
||||
}
|
||||
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: "User name",
|
||||
@@ -124,11 +122,8 @@ export default function ViewersOverTime() {
|
||||
</Row>
|
||||
<div className="chart-container">
|
||||
<Chart data={viewerInfo} color="#ff84d8" unit="" />
|
||||
|
||||
<div>
|
||||
<Table dataSource={clients} columns={columns} />;
|
||||
</div>
|
||||
</div>
|
||||
<Table dataSource={clients} columns={columns} />;
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user