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
c95095be
Commit
c95095be
authored
May 20, 2021
by
earndt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-Inf]
👷
Modifies deployment.yaml, api calls [
@earndt
]
parent
802b30ec
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41841 additions
and
1 deletion
+41841
-1
package-lock.json
package-lock.json
+41838
-0
OrderShowPage.tsx
src/pages/OrderShowPage.tsx
+3
-1
No files found.
package-lock.json
0 → 100644
View file @
c95095be
This diff is collapsed.
Click to expand it.
src/pages/OrderShowPage.tsx
View file @
c95095be
...
...
@@ -14,10 +14,12 @@ import '../styles/stylesheets/body.css'
const
OrderShowPage
=
(
props
:
any
)
=>
{
const
URL
=
(
process
.
env
.
REACT_APP_BACKEND_URL
as
string
)
const
BASE_PATH
=
`
${
URL
}
/api/orders`
// const { id } = useParams<any>();
// const { order } = useOrder(id)
const
location
=
props
.
match
.
params
.
id
;
const
apiUrl
=
'http://localhost:8084/api/orders/'
+
location
;
const
apiUrl
=
`
${
BASE_PATH
}
/`
+
location
;
const
[
order
,
setOrder
]
=
useState
<
Order
>
();
const
[
items
,
setItems
]
=
useState
<
Item
[]
>
()
...
...
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