-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: social value calculations #297
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
bb5778f
to
685d94e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few question or nitpicks, but all good 👌
<div className="flex flex-wrap gap-6"> | ||
<Card title="Money saved" figure="£30,000"> | ||
<p>On housing costs over 10 years, compared to conventional ownership</p> | ||
<Card title="Money saved" figure={`£${Math.round(household.socialValue.moneySaved).toLocaleString()}`}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're not familiar with it, have a look at this API - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat
SocialValue
class withinHousehold
(and associated tests)SocialValue
figures in theWhatDifference
card