Skip to content

Commit

Permalink
supplier detail: adds carbon removal info to sourcing information
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Mar 18, 2024
1 parent 20071ec commit b67bd30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/src/containers/analysis-eudr-detail/sourcing-info/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ const SupplierSourcingInfo = (): JSX.Element => {
{data?.totalArea ? `${Intl.NumberFormat(undefined).format(data.totalArea)} Kha` : '-'}
</span>
</div>
<Separator orientation="vertical" className="h-10" />
<div>
<h4 className="text-2xs uppercase">Carbon removal</h4>
<span>
{data?.totalCarbonRemoval
? `${Intl.NumberFormat(undefined, { style: 'unit', unit: 'kilogram' }).format(
data.totalCarbonRemoval,
)}`
: '-'}
</span>
</div>
</div>

<SupplierSourcingInfoChart />
Expand Down
1 change: 1 addition & 0 deletions client/src/hooks/eudr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export interface SupplierDetail {
};
totalArea: number;
totalVolume: number;
totalCarbonRemoval: number;
byVolume: [
{
plotName: string;
Expand Down

0 comments on commit b67bd30

Please sign in to comment.