Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Dec 12, 2023
1 parent db3547e commit 478c678
Showing 1 changed file with 49 additions and 37 deletions.
86 changes: 49 additions & 37 deletions packages/desktop-client/src/components/reports/ReportSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ export function ReportSummary({
}}
>
<Text
style={{
...styles.largeText,
alignItems: 'center',
marginBottom: 2,
fontWeight: 600,
}}
style={[
styles.largeText,
{
alignItems: 'center',
marginBottom: 2,
fontWeight: 600,
},
]}
>
{monthUtils.format(startDate, 'MMM yyyy')} -{' '}
{monthUtils.format(endDate, 'MMM yyyy')}
Expand All @@ -61,12 +63,14 @@ export function ReportSummary({
}}
>
<Text
style={{
...styles.mediumText,
alignItems: 'center',
marginBottom: 2,
fontWeight: 400,
}}
style={[
styles.mediumText,
{
alignItems: 'center',
marginBottom: 2,
fontWeight: 400,
},
]}
>
{balanceTypeOp === 'totalDebts'
? 'TOTAL SPENDING'
Expand All @@ -75,12 +79,14 @@ export function ReportSummary({
: 'NET ' + net}
</Text>
<Text
style={{
...styles.veryLargeText,
alignItems: 'center',
marginBottom: 2,
fontWeight: 800,
}}
style={[
styles.veryLargeText,
{
alignItems: 'center',
marginBottom: 2,
fontWeight: 800,
},
]}
>
<PrivacyFilter blurIntensity={7}>
{amountToCurrency(data[balanceTypeOp])}
Expand All @@ -98,12 +104,14 @@ export function ReportSummary({
}}
>
<Text
style={{
...styles.mediumText,
alignItems: 'center',
marginBottom: 2,
fontWeight: 400,
}}
style={[
styles.mediumText,
{
alignItems: 'center',
marginBottom: 2,
fontWeight: 400,
},
]}
>
{balanceTypeOp === 'totalDebts'
? 'AVERAGE SPENDING'
Expand All @@ -112,12 +120,14 @@ export function ReportSummary({
: 'AVERAGE NET'}
</Text>
<Text
style={{
...styles.veryLargeText,
alignItems: 'center',
marginBottom: 2,
fontWeight: 800,
}}
style={[
styles.veryLargeText,
{
alignItems: 'center',
marginBottom: 2,
fontWeight: 800,
},
]}
>
<PrivacyFilter blurIntensity={7}>
{integerToCurrency(Math.round(average))}
Expand All @@ -140,13 +150,15 @@ export function ReportLegend({ legend, groupBy }) {
}}
>
<Text
style={{
...styles.largeText,
alignItems: 'center',
marginBottom: 2,
fontWeight: 400,
paddingTop: 10,
}}
style={[
styles.largeText,
{
alignItems: 'center',
marginBottom: 2,
fontWeight: 400,
paddingTop: 10,
},
]}
>
{groupBy}
</Text>
Expand Down

0 comments on commit 478c678

Please sign in to comment.