Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management
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
1
Merge Requests
1
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
warehouse-management
Commits
23dfc92f
Commit
23dfc92f
authored
May 06, 2021
by
Darrick Yong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dummy data
parent
a3090b84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
95 deletions
+0
-95
Search.jsx
frontend/src/components/filter/Search.jsx
+0
-1
OrderButtons.jsx
frontend/src/components/order/OrderButtons.jsx
+0
-1
orders_api_util.jsx
frontend/src/util/orders_api_util.jsx
+0
-93
No files found.
frontend/src/components/filter/Search.jsx
View file @
23dfc92f
...
@@ -63,7 +63,6 @@ const mapStateToProps = (state) => ({
...
@@ -63,7 +63,6 @@ const mapStateToProps = (state) => ({
});
});
const
mapDispatchToProps
=
(
dispatch
)
=>
({
const
mapDispatchToProps
=
(
dispatch
)
=>
({
// fetchOrders: () => dispatch(fetchOrders()),
});
});
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
Search
);
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
Search
);
frontend/src/components/order/OrderButtons.jsx
View file @
23dfc92f
...
@@ -4,7 +4,6 @@ import { editOrder } from "../../actions/order_actions";
...
@@ -4,7 +4,6 @@ import { editOrder } from "../../actions/order_actions";
import
Button
from
"../atoms/Button"
;
import
Button
from
"../atoms/Button"
;
const
OrderButtons
=
({
order
,
editOrder
})
=>
{
const
OrderButtons
=
({
order
,
editOrder
})
=>
{
// const { id, orderId, status, orderItems, createdAt, modifiedAt } = order;
const
handleUpdate
=
(
action
)
=>
{
const
handleUpdate
=
(
action
)
=>
{
console
.
log
(
action
);
console
.
log
(
action
);
...
...
frontend/src/util/orders_api_util.jsx
View file @
23dfc92f
import
axios
from
'axios'
;
import
axios
from
'axios'
;
// const RECEIVED = "RECEIVED";
// const FULFILLED = "FULFILLED";
// const CANCELLED = "CANCELLED";
// const sampleGetAll = [
// // allIds: ["1", "2", "3"],
// // byId: {
// {
// id: "1",
// orderId: "o1",
// status: RECEIVED,
// orderItems: [
// {
// itemId: "17",
// itemName: "Apple iPhone",
// itemQuantity: 4,
// itemPrice: 17.99,
// itemSku: 8765309,
// },
// {
// itemId: "Google Pixel",
// itemName: "Item 2",
// itemQuantity: 42,
// itemPrice: 17.99,
// itemSku: 8715309,
// },
// ],
// },
// {
// id: "2",
// orderId: "o2",
// status: RECEIVED,
// orderItems: [
// {
// itemId: "17",
// itemName: "Item 1",
// itemQuantity: 3,
// itemPrice: 17.99,
// itemSku: 8765309,
// },
// {
// itemId: "18",
// itemName: "Item 2",
// itemQuantity: 41,
// itemPrice: 17.99,
// itemSku: 8715309,
// },
// ],
// },
// {
// id: "3",
// orderId: "o3",
// status: RECEIVED,
// orderItems: [
// {
// itemId: "17",
// itemName: "Item 1",
// itemQuantity: 2,
// itemPrice: 17.99,
// itemSku: 8765309,
// },
// {
// itemId: "18",
// itemName: "Item 2",
// itemQuantity: 40,
// itemPrice: 17.99,
// itemSku: 8715309,
// },
// ],
// },
// // },
// ];
// const sampleNew = {
// id: "4",
// orderId: "o4",
// status: RECEIVED,
// };
// const getAllPromise = new Promise( (resolve, reject) => {
// resolve(sampleGetAll)
// })
// const createNewPromise = new Promise( (resolve, reject) => {
// resolve(sampleNew)
// })
// export const getOrders = () => {
// return getAllPromise;
// };
// export const createOrder = (order) => {
// return createNewPromise;
// }
export
const
getOrders
=
()
=>
{
export
const
getOrders
=
()
=>
{
return
axios
.
get
(
`http://localhost:8080/api/orders`
);
return
axios
.
get
(
`http://localhost:8080/api/orders`
);
}
}
...
...
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