Add datasheet popup

This commit is contained in:
2024-07-29 13:10:53 -05:00
parent 5a3943ae46
commit d2371c85ff
6 changed files with 90 additions and 18 deletions

View File

@ -2,6 +2,10 @@ import React, { Component } from "react";
import NavBar from "../components/NavBar";
import StatisticsComponent from "../components/StatisticsComponent";
import "../assets/stylesheets/app.scss";
import {
Provider,
KeepAlive,
} from 'react-keep-alive';
export default class StatisticsRoute extends Component {
constructor(props) {
@ -13,7 +17,11 @@ export default class StatisticsRoute extends Component {
return (
<div className="container">
<NavBar socket={this.props.socket} />
<StatisticsComponent socketHandler={this.props.socket} />
<Provider>
<KeepAlive name="Grafana">
<StatisticsComponent socketHandler={this.props.socket} />
</KeepAlive>
</Provider>
</div>
);
}