Skip to content

Commit

Permalink
add tender staatus
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Mar 4, 2024
1 parent 23acad0 commit 86c6297
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions components/datasets/ContractDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import React from 'react';
export const ContractDetails = ({ dataPackage }) => {
const basicContent = [
{
title: 'Open contracting ID',
title: 'Open Contracting ID',
desc: dataPackage?.ocid,
},
{
Expand All @@ -33,7 +33,11 @@ export const ContractDetails = ({ dataPackage }) => {
desc: dataPackage?.buyer?.[0].name,
},
{
title: 'Tender amount',
title: 'Tender Status',
desc: dataPackage?.tenderStatus,
},
{
title: 'Tender Amount',
desc: dataPackage?.tender?.[0].value
? `${dataPackage?.tender?.[0].value?.[0].currency} ${commaNumber(
dataPackage?.tender?.[0].value?.[0].amount
Expand Down
3 changes: 2 additions & 1 deletion components/datasets/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ export const sortItems = [
export const defaultSort = 'score:desc';

export const filterList =
'"organization", "fiscalYear", "mainProcurementCategory"';
'"organization", "fiscalYear", "mainProcurementCategory", "tenderStatus"';

export function formatFilterName(name: string) {
if (name == 'fiscalYear') {
return 'fiscal year';
} else if (name == 'organization' || name == 'buyer_name')
return 'buyer name';
else if (name == 'mainProcurementCategory') return 'category';
else if (name == 'tenderStatus') return 'Status';
else return name;
}

0 comments on commit 86c6297

Please sign in to comment.