From 45264a8ae089eed5b4b31c31668fb899a7fba00c Mon Sep 17 00:00:00 2001 From: Richard Shuai Date: Sun, 29 Jan 2023 17:58:55 -0500 Subject: [PATCH] Merge religion (#151) Closes #141 Merged the no religious affliation option with the atheist option. Co-authored-by: ricsign Reviewed-on: https://git.csclub.uwaterloo.ca/www/cs-2022-class-profile/pulls/151 Reviewed-by: Mark Chiu --- data/demographics.ts | 6 +----- pages/contributors.tsx | 12 +++++++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/data/demographics.ts b/data/demographics.ts index f0f1160..6f63f4a 100644 --- a/data/demographics.ts +++ b/data/demographics.ts @@ -311,16 +311,12 @@ export const D10 = [ export const D11 = [ { category: "No religious affiliation", - value: 79, + value: 80, }, { category: "Christianity", value: 16, }, - { - category: "Atheist", - value: 1, - }, { category: "Judaism", value: 3, diff --git a/pages/contributors.tsx b/pages/contributors.tsx index 71c5076..b529c7d 100644 --- a/pages/contributors.tsx +++ b/pages/contributors.tsx @@ -27,9 +27,15 @@ export function ContributorGroup({ group }: ContributorGroupProps) { .map((d, idx) => { return (
  • - - {d.name} - + {d.link ? ( + + {d.name} + + ) : ( + e.preventDefault()}> + {d.name} + + )}
  • ); })}