File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { Router , Route , Switch } from "react-router-dom" ;
3
3
import { Container } from "reactstrap" ;
4
- import Loading from "./components/Loading" ;
4
+ // import Loading from "./components/Loading";
5
5
import NavBar from "./components/NavBar" ;
6
6
import Home from "./views/Home" ;
7
7
import Profile from "./views/Profile" ;
8
- import { useAuth0 } from "@auth0/auth0-react" ;
8
+ // import { useAuth0 } from "@auth0/auth0-react";
9
9
import history from "./utils/history" ;
10
10
11
11
// styles
@@ -20,15 +20,15 @@ import PurchaseList from "./views/MyPurchases";
20
20
initFontAwesome ( ) ;
21
21
22
22
const App = ( ) => {
23
- const { isLoading, error } = useAuth0 ( ) ;
23
+ // const { isLoading, error } = useAuth0();
24
24
25
- if ( error ) {
26
- return < div > Oops... { error . message } </ div > ;
27
- }
25
+ // if (error) {
26
+ // return <div>Oops... {error.message}</div>;
27
+ // }
28
28
29
- if ( isLoading ) {
30
- return < Loading /> ;
31
- }
29
+ // if (isLoading) {
30
+ // return <Loading />;
31
+ // }
32
32
33
33
return (
34
34
< Router history = { history } >
You can’t perform that action at this time.
0 commit comments