This commit is contained in:
pawan-dot 2024-06-03 12:53:13 +05:30
parent d95bc5b178
commit c123ec2518
2 changed files with 16 additions and 17 deletions

View File

@ -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"

View File

@ -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();
@ -127,7 +127,7 @@ 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,7 +144,7 @@ const formattedmonth = `${month} ${year}`;
value={<>{Requests.length}</>}
title="Contact Requests"
/>
</CCol>
</CCol> */}
{/* <CCol sm={6} lg={3}>
<CWidgetStatsA
className="mb-4"
@ -201,7 +201,7 @@ const formattedmonth = `${month} ${year}`;
/> */}
{/* </CCol> */}
</CRow>
{/* </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> */}
</>
);
};