Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Update WalletCharts.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
code-a1 authored Apr 19, 2022
1 parent a6b5a9d commit 935ce2e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.ivy.design.l0_system.UI
import com.ivy.design.l0_system.style
import com.ivy.wallet.R
import com.ivy.wallet.domain.fp.charts.ChartPeriod
import com.ivy.wallet.domain.fp.charts.SingleChartPoint
import com.ivy.wallet.ui.charts.toValues2
Expand Down Expand Up @@ -107,7 +109,7 @@ fun BalanceChart(

Text(
modifier = Modifier.padding(start = 24.dp),
text = "Balance chart",
text = stringResource(R.string.balance_chart),
style = UI.typo.b1
)

Expand All @@ -118,7 +120,7 @@ fun BalanceChart(
IvyLineChart(
modifier = Modifier.padding(horizontal = 8.dp),
height = 400.dp,
title = "BALANCE ${period.display().uppercase()}",
title = stringResource(R.string.balance, period.display().uppercase()),
functions = listOf(
Function(
values = values,
Expand Down Expand Up @@ -186,4 +188,4 @@ fun ChartInfoCard(

Spacer(Modifier.width(24.dp))
}
}
}

0 comments on commit 935ce2e

Please sign in to comment.