mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
39 lines
1.2 KiB
JavaScript
Vendored
39 lines
1.2 KiB
JavaScript
Vendored
import React, { Component } from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import HistoryGraph from '../Graphics/HistoryGraph';
|
|
import LatestResults from '../Graphics/LatestResults';
|
|
import Footer from './Footer';
|
|
import DataRow from '../Data/DataRow';
|
|
import TestsTable from '../Graphics/TestsTable';
|
|
import Settings from '../Settings/Settings';
|
|
import Login from '../Login';
|
|
import Authentication from '../Authentication/Authentication';
|
|
import Navbar from '../Navbar';
|
|
|
|
export default class HomePage extends Component {
|
|
|
|
render() {
|
|
return (
|
|
<div>
|
|
<Navbar />
|
|
<div className="my-4">
|
|
{(window.config.auth == true && window.authenticated == false) &&
|
|
<Login />
|
|
}
|
|
<LatestResults />
|
|
<HistoryGraph />
|
|
<TestsTable />
|
|
<Settings />
|
|
<Authentication />
|
|
<DataRow />
|
|
</div>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
if (document.getElementById('homePage')) {
|
|
ReactDOM.render(<HomePage />, document.getElementById('homePage'));
|
|
}
|