From 4afaed9fb1268dd4bdac764e7c5496aa12fb3ef9 Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Fri, 20 Sep 2024 09:15:49 +0100 Subject: [PATCH] Add number of devs to member page Closes #131 --- src/components/Leaderboard.astro | 20 ++++++++++++++++---- src/pages/members/[id].astro | 3 ++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/Leaderboard.astro b/src/components/Leaderboard.astro index a119774..e471356 100644 --- a/src/components/Leaderboard.astro +++ b/src/components/Leaderboard.astro @@ -24,8 +24,14 @@ const members = await getMembers(); Name - Devs - $/dev + + Devs + + + $/dev + @@ -40,8 +46,14 @@ const members = await getMembers(); Name - Devs - $/dev + + Devs + + + $/dev + diff --git a/src/pages/members/[id].astro b/src/pages/members/[id].astro index 8d3a8aa..0426067 100644 --- a/src/pages/members/[id].astro +++ b/src/pages/members/[id].astro @@ -55,7 +55,8 @@ export async function getStaticPaths() { {member.annualReports.map(report =>

Year Ending {report.dateYearEnding}

- {fmtCurrency(getDollarsPerDev(report))} / dev + {report.averageNumberOfDevs} + devs