refactor(stats): extract strings into resources

This commit is contained in:
Nishant Mishra
2025-12-18 23:06:21 +05:30
parent d9fb10388f
commit 9b5c878561
2 changed files with 4 additions and 2 deletions

View File

@@ -300,11 +300,11 @@ fun SharedTransitionScope.LastMonthScreen(
item {
Text(
"Focus history calendar",
stringResource(R.string.focus_history_calendar),
style = typography.headlineSmall
)
Text(
"Focus history of the past month. Days of the previous month are marked with a different color. Click on a date for more info.",
stringResource(R.string.focus_history_calendar_desc),
style = typography.bodySmall,
color = colorScheme.onSurfaceVariant
)

View File

@@ -118,4 +118,6 @@
<string name="show_chart">Show chart</string>
<string name="focus_history_heatmap">Focus history heatmap</string>
<string name="focus_history_heatmap_desc">Focus history of the past year. Deeper colors represent a longer duration. Cells are grouped by month. Tap on cells for more info.</string>
<string name="focus_history_calendar">Focus history calendar</string>
<string name="focus_history_calendar_desc">Focus history of the past month. Days of the previous month are marked with a different color. Click on a date for more info.</string>
</resources>