mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Merge pull request #202 from Hestia-Homes/feature/total_propoerties
live tracker added
This commit is contained in:
commit
d24c2a191a
1 changed files with 7 additions and 8 deletions
|
|
@ -93,20 +93,19 @@ export default function LiveTracker({
|
|||
</div>
|
||||
</Card>
|
||||
|
||||
{/* Total Properties */}
|
||||
{/* Total Properties per Project */}
|
||||
<StatCard
|
||||
icon={Home}
|
||||
title="Total Properties"
|
||||
value={totalDeals}
|
||||
title="Properties in Project"
|
||||
value={currentProject?.allDeals.length ?? 0}
|
||||
onClick={() =>
|
||||
handleOpenTable(
|
||||
"All Properties",
|
||||
projects.flatMap((p) => p.allDeals),
|
||||
["dealname", "landlordPropertyId", "projectCode"],
|
||||
`${currentProjectCode} — All Properties`,
|
||||
currentProject?.allDeals ?? [],
|
||||
["dealname", "landlordPropertyId"],
|
||||
{
|
||||
dealname: "Address Ref.",
|
||||
landlordPropertyId: "Property Ref.",
|
||||
projectCode: "Project Code",
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
@ -118,7 +117,7 @@ export default function LiveTracker({
|
|||
icon={AlertTriangle}
|
||||
title="Awaab's Law Reporting"
|
||||
value={`${majorIssues}`}
|
||||
subtitle={`(${majorPercent}%)`}
|
||||
subtitle={`(${majorPercent}% across all projects)`}
|
||||
onClick={() =>
|
||||
handleOpenTable(
|
||||
"Awaab's Law Reporting",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue