first c
This commit is contained in:
parent
d95bc5b178
commit
c123ec2518
@ -13,8 +13,8 @@
|
||||
"license": "MIT",
|
||||
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
|
||||
"scripts": {
|
||||
"dev": "react-scripts --openssl-legacy-provider start",
|
||||
"build": "react-scripts --openssl-legacy-provider build",
|
||||
"dev": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit",
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "eslint \"src/**/*.js\"",
|
||||
@ -22,8 +22,7 @@
|
||||
"start:n17": "react-scripts --openssl-legacy-provider start",
|
||||
"test": "react-scripts test",
|
||||
"test:cov": "npm test -- --coverage --watchAll=false",
|
||||
"test:debug": "react-scripts --inspect-brk test --runInBand",
|
||||
"heroku-postbuild": "npm run build"
|
||||
"test:debug": "react-scripts --inspect-brk test --runInBand"
|
||||
},
|
||||
"config": {
|
||||
"coreui_library_short_version": "4.1"
|
||||
|
@ -74,7 +74,7 @@ const WidgetsDropdown = ({ users, category, product, Requests }) => {
|
||||
});
|
||||
// console.log(res.data);
|
||||
setProcessingOrders(res?.data?.order);
|
||||
}
|
||||
};
|
||||
const getDispatchedOrder = async () => {
|
||||
let res = await axios.get(`/api/order/getAll/dispatched`, {
|
||||
headers: {
|
||||
@ -83,7 +83,7 @@ const WidgetsDropdown = ({ users, category, product, Requests }) => {
|
||||
});
|
||||
// console.log(res.data);
|
||||
setDispatchedOrders(res?.data?.order);
|
||||
}
|
||||
};
|
||||
const getDeliveredOrder = async () => {
|
||||
let res = await axios.get(`/api/order/getAll/delivered`, {
|
||||
headers: {
|
||||
@ -92,7 +92,7 @@ const WidgetsDropdown = ({ users, category, product, Requests }) => {
|
||||
});
|
||||
// console.log(res.data);
|
||||
setDeliveredOrders(res?.data?.order);
|
||||
}
|
||||
};
|
||||
const getCancelledOrder = async () => {
|
||||
let res = await axios.get(`/api/order/getAll/cancelled`, {
|
||||
headers: {
|
||||
@ -101,7 +101,7 @@ const WidgetsDropdown = ({ users, category, product, Requests }) => {
|
||||
});
|
||||
// console.log(res.data);
|
||||
setCancelledOrders(res?.data?.order);
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
getAllOrder();
|
||||
@ -122,12 +122,12 @@ const WidgetsDropdown = ({ users, category, product, Requests }) => {
|
||||
: "th";
|
||||
const month = date.toLocaleDateString("en-US", { month: "long" });
|
||||
const formattedDate = `${day}${suffix} ${month}`;
|
||||
// console.log(formattedDate);
|
||||
const year =date.toLocaleDateString("en-US", { year: "numeric" });
|
||||
const formattedmonth = `${month} ${year}`;
|
||||
// console.log(formattedDate);
|
||||
const year = date.toLocaleDateString("en-US", { year: "numeric" });
|
||||
const formattedmonth = `${month} ${year}`;
|
||||
return (
|
||||
<>
|
||||
<h4>Users and Requests</h4>
|
||||
{/* <h4>Users and Requests</h4>
|
||||
<CRow>
|
||||
<CCol sm={6} lg={3}>
|
||||
<CWidgetStatsA
|
||||
@ -144,8 +144,8 @@ const formattedmonth = `${month} ${year}`;
|
||||
value={<>{Requests.length}</>}
|
||||
title="Contact Requests"
|
||||
/>
|
||||
</CCol>
|
||||
{/* <CCol sm={6} lg={3}>
|
||||
</CCol> */}
|
||||
{/* <CCol sm={6} lg={3}>
|
||||
<CWidgetStatsA
|
||||
className="mb-4"
|
||||
color="warning"
|
||||
@ -200,8 +200,8 @@ const formattedmonth = `${month} ${year}`;
|
||||
title="Total Events"
|
||||
|
||||
/> */}
|
||||
{/* </CCol> */}
|
||||
</CRow>
|
||||
{/* </CCol> */}
|
||||
{/* </CRow>
|
||||
<h4>Products and Categories</h4>
|
||||
<CRow>
|
||||
<CCol sm={6} lg={3}>
|
||||
@ -295,7 +295,7 @@ const formattedmonth = `${month} ${year}`;
|
||||
title="Orders - Cancelled"
|
||||
/>
|
||||
</CCol>
|
||||
</CRow>
|
||||
</CRow> */}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user