Skip to content

Commit 4efc296

Browse files
committed
feat(fix): Creo que se soluciona que se cae al refrescar
1 parent fdc9840 commit 4efc296

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Sample-01/src/App.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React from "react";
22
import { Router, Route, Switch } from "react-router-dom";
33
import { Container } from "reactstrap";
4-
import Loading from "./components/Loading";
4+
// import Loading from "./components/Loading";
55
import NavBar from "./components/NavBar";
66
import Home from "./views/Home";
77
import Profile from "./views/Profile";
8-
import { useAuth0 } from "@auth0/auth0-react";
8+
// import { useAuth0 } from "@auth0/auth0-react";
99
import history from "./utils/history";
1010

1111
// styles
@@ -20,15 +20,15 @@ import PurchaseList from "./views/MyPurchases";
2020
initFontAwesome();
2121

2222
const App = () => {
23-
const { isLoading, error } = useAuth0();
23+
// const { isLoading, error } = useAuth0();
2424

25-
if (error) {
26-
return <div>Oops... {error.message}</div>;
27-
}
25+
// if (error) {
26+
// return <div>Oops... {error.message}</div>;
27+
// }
2828

29-
if (isLoading) {
30-
return <Loading />;
31-
}
29+
// if (isLoading) {
30+
// return <Loading />;
31+
// }
3232

3333
return (
3434
<Router history={history}>

0 commit comments

Comments
 (0)