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