-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (29 loc) · 824 Bytes
/
App.js
File metadata and controls
34 lines (29 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import "./App.css";
// Components
import RepositoriesList from "./components/repositories/RepositoriesList";
import Profile from "./components/profile/Profile";
import Navbar from "./components/layouts/Navbar";
// eslint-disable-next-line
import authInterceptor from "./interceptors";
function App() {
return (
<div className="App">
<Navbar />
{!process.env.REACT_APP_GITHUB_TOKEN ? (
<div className="app-container">
Please insert your Github Token in the .env file
</div>
) : (
<div className="app-container">
<div className="profile-container">
<Profile />
</div>
<div className="repositories-container">
<RepositoriesList />
</div>
</div>
)}
</div>
);
}
export default App;