Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
order-management-react
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
order-management-react
Commits
cac252b9
Commit
cac252b9
authored
May 06, 2021
by
Kevin Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-87]
🚧
Working on Local Storage and adding google info
parent
4a505b63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
index.tsx
src/index.tsx
+3
-0
AccountPage.tsx
src/pages/AccountPage.tsx
+0
-12
No files found.
src/index.tsx
View file @
cac252b9
...
...
@@ -4,6 +4,9 @@ import './index.css';
import
App
from
'./App'
;
import
reportWebVitals
from
'./reportWebVitals'
;
const
storage
=
window
.
localStorage
;
storage
.
setItem
(
"loggedIn"
,
"false"
);
ReactDOM
.
render
(
<
React
.
StrictMode
>
<
App
/>
...
...
src/pages/AccountPage.tsx
View file @
cac252b9
...
...
@@ -2,20 +2,8 @@ import React, { useState, useEffect } from 'react'
import
{
AccountForm
}
from
'components'
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
(
<
div
>
{
/* <button onClick={tester}>{appState}</button> */
}
<
AccountForm
/>
</
div
>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment