Commit 8765be73 authored by Darrick Yong's avatar Darrick Yong

clean up files

parent 746bd24b
......@@ -32,7 +32,10 @@
transition: transform 1s;
cursor: pointer;
margin-right: 10px;
padding: 5px;
font-size: 20px;
background: white;
border-radius: 50%;
}
.oii-drop.rotate {
......
......@@ -43,7 +43,7 @@ const Filter = ({ orders, setOrdersToShow }) => {
setOrdersToShow(orders);
} else {
const newOrders = { allIds: [], byId: {} };
orders.allIds.map((wareId) => {
orders.allIds.forEach((wareId) => {
const order = orders.byId[wareId];
switch (order.status) {
case RECEIVED:
......@@ -71,7 +71,7 @@ const Filter = ({ orders, setOrdersToShow }) => {
setOrdersToShow(newOrders);
}
}, [all, received, fulfilled, cancelled]);
}, [orders, setOrdersToShow, all, received, fulfilled, cancelled]);
if (!orders.allIds.length) return null;
......
......@@ -79,9 +79,9 @@ const sampleNew = {
status: RECEIVED,
};
const getAllPromise = new Promise( (resolve, reject) => {
resolve(sampleGetAll)
})
// const getAllPromise = new Promise( (resolve, reject) => {
// resolve(sampleGetAll)
// })
const createNewPromise = new Promise( (resolve, reject) => {
resolve(sampleNew)
})
......
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