diff --git a/frontend/src/app/reports/Dashboard.tsx b/frontend/src/app/reports/Dashboard.tsx index a132f03..887263a 100644 --- a/frontend/src/app/reports/Dashboard.tsx +++ b/frontend/src/app/reports/Dashboard.tsx @@ -289,7 +289,7 @@ export default function Dashboard() { const FAKE_ORDER_DATA = [ { - client: { + Client: { _id: '65d91d857b2e523b16d35778', name: 'Adventurous Arjun', age: 32, @@ -326,7 +326,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35779', name: 'Brave Bianca', age: 28, @@ -352,7 +352,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3577a', name: 'Caring Cody', age: 45, @@ -378,7 +378,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3577b', name: 'Daring Daisy', age: 37, @@ -404,7 +404,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3577c', name: 'Energetic Elena', age: 29, @@ -441,7 +441,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3577d', name: 'Fearless Fernando', age: 41, @@ -467,7 +467,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3577e', name: 'Gentle Giselle', age: 33, @@ -493,7 +493,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3577f', name: 'Helpful Hector', age: 49, @@ -520,7 +520,7 @@ export default function Dashboard() { }, // Add 12 more orders below: { - client: { + Client: { _id: '65d91d857b2e523b16d35780', name: 'Graceful Gabrielle', age: 31, @@ -546,7 +546,7 @@ export default function Dashboard() { status: 'failed', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35781', name: 'Harmonious Harper', age: 42, @@ -572,7 +572,7 @@ export default function Dashboard() { status: 'pending', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35782', name: 'Inventive Isaac', age: 35, @@ -598,7 +598,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35783', name: 'Joyful Jordan', age: 30, @@ -624,7 +624,7 @@ export default function Dashboard() { status: 'pending', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35784', name: 'Keen Kelly', age: 48, @@ -650,7 +650,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35785', name: 'Loyal Liam', age: 34, @@ -676,7 +676,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35786', name: 'Merry Melissa', age: 39, @@ -702,7 +702,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35787', name: 'Noble Nathan', age: 43, @@ -728,7 +728,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35788', name: 'Optimistic Olivia', age: 26, @@ -754,7 +754,7 @@ export default function Dashboard() { status: 'pending', }, { - client: { + Client: { _id: '65d91d857b2e523b16d35789', name: 'Patient Paul', age: 51, @@ -780,7 +780,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3578a', name: 'Quirky Quentin', age: 38, @@ -806,7 +806,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3578b', name: 'Resilient Rachel', age: 44, @@ -832,7 +832,7 @@ export default function Dashboard() { status: 'failed', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3578c', name: 'Sincere Sarah', age: 29, @@ -858,7 +858,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3578d', name: 'Tender Thomas', age: 46, @@ -884,7 +884,7 @@ export default function Dashboard() { status: 'pending', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3578e', name: 'Understanding Ursula', age: 33, @@ -910,7 +910,7 @@ export default function Dashboard() { status: 'successful', }, { - client: { + Client: { _id: '65d91d857b2e523b16d3578f', name: 'Valiant Victor', age: 47, @@ -938,15 +938,15 @@ export default function Dashboard() { ]; useEffect(() => { - fetch(API_BASE_URL + '/orders/all') + /*fetch(API_BASE_URL + '/orders/all') .then((response) => response.json()) .then((orderData) => { setOrderData(filterBySuccessfulStatus(orderData)); setDisplayedData(filterBySuccessfulStatus(orderData)); }); // */ - //setOrderData(filterBySuccessfulStatus(FAKE_ORDER_DATA)); - //setDisplayedData(filterBySuccessfulStatus(FAKE_ORDER_DATA)); - //setOtherBrands(makeOtherBrandsArray(FAKE_ORDER_DATA)); + setOrderData(filterBySuccessfulStatus(FAKE_ORDER_DATA)); + setDisplayedData(filterBySuccessfulStatus(FAKE_ORDER_DATA)); + setOtherBrands(makeOtherBrandsArray(FAKE_ORDER_DATA)); //co nsole.log(otherBrands); }, []);