diff --git a/src/components/login.js b/src/components/login.js
index d8502a7..4a5cd1d 100644
--- a/src/components/login.js
+++ b/src/components/login.js
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
export default (player) => {
function Login(props) {
- const [input, setInput] = useState(localStorage.getItem("token"));
+ const [input, setInput] = useState(localStorage.getItem("token") ? localStorage.getItem("token"): "" );
return (
function MainApp() {
- return (
-
-
- );
+import PropTypes from "prop-types";
+
+export default () => {
+ function MainApp(props) {
+ return (
+
+
+ Questable
+
+
+
+ );
+ }
+ MainApp.propTypes = {
+ setLoggedIn: PropTypes.func,
+ };
+ return MainApp;
};
diff --git a/src/index.js b/src/index.js
index c32e453..5f7fc62 100644
--- a/src/index.js
+++ b/src/index.js
@@ -14,7 +14,7 @@ const MainApp = mainapp();
function App(){
const [loggedIn, setLoggedIn] = useState(false);
- return loggedIn ?
:
;
+ return loggedIn ?
:
;
}
ReactDOM.render(
, document.getElementById("root"));