-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
799 additions
and
709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
client/src/containers/overview/project-details/abatement-potential/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { FC } from "react"; | ||
|
||
import { formatNumber } from "@/lib/format"; | ||
|
||
import { PROJECT_DETAILS } from "@/constants/tooltip"; | ||
|
||
import { Label } from "@/components/ui/label"; | ||
|
||
interface AbatementPotentialProps { | ||
value?: number; | ||
} | ||
|
||
const AbatementPotential: FC<AbatementPotentialProps> = ({ value }) => { | ||
return ( | ||
<> | ||
<div className="flex items-center justify-between"> | ||
<div className="flex items-center gap-2"> | ||
<Label | ||
className="text-md font-medium" | ||
tooltip={{ | ||
title: "Abatement potential", | ||
content: PROJECT_DETAILS.ABATEMENT_POTENTIAL, | ||
}} | ||
> | ||
<h3 className="text-base font-semibold">Abatement potential</h3> | ||
</Label> | ||
</div> | ||
<span className="space-x-1 text-xl font-normal"> | ||
<span | ||
className={"inline-block align-top text-xs text-muted-foreground"} | ||
> | ||
tCO2e/yr | ||
</span> | ||
<span>{formatNumber(value || 0)}</span> | ||
</span> | ||
</div> | ||
<div className="mt-4 space-y-2 text-sm text-muted-foreground"> | ||
<p>Estimation of total CO2 expected during the project.</p> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default AbatementPotential; |
19 changes: 19 additions & 0 deletions
19
client/src/containers/overview/project-details/compare-button/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Plus } from "lucide-react"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
import { Label } from "@/components/ui/label"; | ||
|
||
const CompareButton = () => { | ||
return ( | ||
<div className="flex items-center gap-2"> | ||
<Label className="text-xs text-big-stone-200"> | ||
Compare with a different project | ||
</Label> | ||
<Button variant="outline" className="h-8 w-8 p-0 hover:bg-transparent"> | ||
<Plus className="h-4 w-4" /> | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CompareButton; |
Oops, something went wrong.