mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Added optional authentication
This commit is contained in:
6
resources/js/components/Home/HomePage.js
vendored
6
resources/js/components/Home/HomePage.js
vendored
@@ -6,6 +6,8 @@ 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';
|
||||
|
||||
export default class HomePage extends Component {
|
||||
|
||||
@@ -13,10 +15,14 @@ export default class HomePage extends Component {
|
||||
return (
|
||||
<div>
|
||||
<div className="my-4">
|
||||
{(window.config.auth == true && window.authenticated == false) &&
|
||||
<Login />
|
||||
}
|
||||
<LatestResults />
|
||||
<HistoryGraph />
|
||||
<TestsTable />
|
||||
<Settings />
|
||||
<Authentication />
|
||||
<DataRow />
|
||||
</div>
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user