Commit cac252b9 authored by Kevin Kaminski's avatar Kevin Kaminski

[AFP-87] 🚧 Working on Local Storage and adding google info

parent 4a505b63
...@@ -4,6 +4,9 @@ import './index.css'; ...@@ -4,6 +4,9 @@ import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
const storage = window.localStorage;
storage.setItem("loggedIn", "false");
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<App /> <App />
......
...@@ -2,20 +2,8 @@ import React, { useState, useEffect } from 'react' ...@@ -2,20 +2,8 @@ import React, { useState, useEffect } from 'react'
import {AccountForm} from 'components' import {AccountForm} from 'components'
const AccountPage = () => { const AccountPage = () => {
// const [appState, setAppState] = useState(0);
// useEffect(() => {
// const apiUrl = 'http://localhost:8080/api/orders';
// fetch(apiUrl).then((response) => response.json())
// .then((data) => console.log('This is your data', data));
// }, [appState])
// const tester = ()=> {
// setAppState(appState + 1);
// }
return ( return (
<div> <div>
{/* <button onClick={tester}>{appState}</button> */}
<AccountForm /> <AccountForm />
</div> </div>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment