Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Replace generated homepage and use NavBar with login button
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarprudnikov committed Jan 2, 2020
1 parent 710f0bb commit 32956d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 59 deletions.
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

25 changes: 11 additions & 14 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import NavBar from "./components/NavBar";
import { useAuth0 } from "./react-auth0-spa";

function App() {

const { loading } = useAuth0();

if (loading) {
return <div>Loading...</div>;
}

return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
<header>
<NavBar />
</header>
</div>
);
Expand Down
7 changes: 0 additions & 7 deletions src/logo.svg

This file was deleted.

0 comments on commit 32956d4

Please sign in to comment.