Skip to content

Commit

Permalink
Merge pull request #197 from open-austin/182-Formatting_Numbers
Browse files Browse the repository at this point in the history
add minimumFractionDigits
  • Loading branch information
Mateo Clarke committed Jul 1, 2017
2 parents 3f6cc03 + 85c647b commit 04766cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/components/PartyLevelHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const PartyLevelHeader = (props) => {
value={service.amount}
style="currency" //eslint-disable-line
currency="USD"
minimumFractionDigits={0}
maximumFractionDigits={0}
/>
</h2>
Expand All @@ -63,6 +64,7 @@ const PartyLevelHeader = (props) => {
value={dept.amount}
style="currency" //eslint-disable-line
currency="USD"
minimumFractionDigits={0}
maximumFractionDigits={0}
/>
</h2>
Expand All @@ -84,6 +86,7 @@ const PartyLevelHeader = (props) => {
value={dept.lastYearAmount}
style="currency" //eslint-disable-line
currency="USD"
minimumFractionDigits={0}
maximumFractionDigits={0}
/>
</h2>
Expand Down
1 change: 1 addition & 0 deletions app/src/components/ServiceFundsAvailable.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const ServiceFundsAvailable = (props) => {
value={displayAmount}
style="currency" //eslint-disable-line
currency="USD"
minimumFractionDigits={0}
maximumFractionDigits={0}
/>
</h4>
Expand Down
2 changes: 2 additions & 0 deletions app/src/components/Submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ class Submit extends Component {
value={funds.sumOfServiceSpending}
style="currency" //eslint-disable-line
currency="USD"
minimumFractionDigits={0}
maximumFractionDigits={0}
/>
</span>
<span className="Submit__smallcaps">
<FormattedNumber
value={funds.servicesSumPercentChange}
minimumFractionDigits={0}
maximumFractionDigits={1}
/>
<span>% from last year</span>
Expand Down
1 change: 1 addition & 0 deletions app/src/components/TotalFundAvailable.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const TotalFundAvailable = (props) => {
value={remainingAmount}
style="currency" //eslint-disable-line
currency="USD"
minimumFractionDigits={0}
maximumFractionDigits={0}
/>
</h4>
Expand Down

0 comments on commit 04766cb

Please sign in to comment.