Add datasheet popup
This commit is contained in:
@ -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>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user