Skip to content

Commit

Permalink
committing current
Browse files Browse the repository at this point in the history
  • Loading branch information
aashiyaaaa committed May 12, 2024
1 parent 177bdd2 commit ee4597e
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions frontend/src/app/reports/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export default function Dashboard() {

const FAKE_ORDER_DATA = [
{
client: {
Client: {
_id: '65d91d857b2e523b16d35778',
name: 'Adventurous Arjun',
age: 32,
Expand Down Expand Up @@ -326,7 +326,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35779',
name: 'Brave Bianca',
age: 28,
Expand All @@ -352,7 +352,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3577a',
name: 'Caring Cody',
age: 45,
Expand All @@ -378,7 +378,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3577b',
name: 'Daring Daisy',
age: 37,
Expand All @@ -404,7 +404,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3577c',
name: 'Energetic Elena',
age: 29,
Expand Down Expand Up @@ -441,7 +441,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3577d',
name: 'Fearless Fernando',
age: 41,
Expand All @@ -467,7 +467,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3577e',
name: 'Gentle Giselle',
age: 33,
Expand All @@ -493,7 +493,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3577f',
name: 'Helpful Hector',
age: 49,
Expand All @@ -520,7 +520,7 @@ export default function Dashboard() {
},
// Add 12 more orders below:
{
client: {
Client: {
_id: '65d91d857b2e523b16d35780',
name: 'Graceful Gabrielle',
age: 31,
Expand All @@ -546,7 +546,7 @@ export default function Dashboard() {
status: 'failed',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35781',
name: 'Harmonious Harper',
age: 42,
Expand All @@ -572,7 +572,7 @@ export default function Dashboard() {
status: 'pending',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35782',
name: 'Inventive Isaac',
age: 35,
Expand All @@ -598,7 +598,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35783',
name: 'Joyful Jordan',
age: 30,
Expand All @@ -624,7 +624,7 @@ export default function Dashboard() {
status: 'pending',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35784',
name: 'Keen Kelly',
age: 48,
Expand All @@ -650,7 +650,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35785',
name: 'Loyal Liam',
age: 34,
Expand All @@ -676,7 +676,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35786',
name: 'Merry Melissa',
age: 39,
Expand All @@ -702,7 +702,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35787',
name: 'Noble Nathan',
age: 43,
Expand All @@ -728,7 +728,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35788',
name: 'Optimistic Olivia',
age: 26,
Expand All @@ -754,7 +754,7 @@ export default function Dashboard() {
status: 'pending',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d35789',
name: 'Patient Paul',
age: 51,
Expand All @@ -780,7 +780,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3578a',
name: 'Quirky Quentin',
age: 38,
Expand All @@ -806,7 +806,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3578b',
name: 'Resilient Rachel',
age: 44,
Expand All @@ -832,7 +832,7 @@ export default function Dashboard() {
status: 'failed',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3578c',
name: 'Sincere Sarah',
age: 29,
Expand All @@ -858,7 +858,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3578d',
name: 'Tender Thomas',
age: 46,
Expand All @@ -884,7 +884,7 @@ export default function Dashboard() {
status: 'pending',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3578e',
name: 'Understanding Ursula',
age: 33,
Expand All @@ -910,7 +910,7 @@ export default function Dashboard() {
status: 'successful',
},
{
client: {
Client: {
_id: '65d91d857b2e523b16d3578f',
name: 'Valiant Victor',
age: 47,
Expand Down Expand Up @@ -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);
}, []);

Expand Down

0 comments on commit ee4597e

Please sign in to comment.