Remove hardcoded strings

This commit is contained in:
ganfra 2026-04-15 13:55:54 +02:00
parent f5683f9c8b
commit 11866afb03
3 changed files with 3 additions and 2 deletions

View file

@ -91,7 +91,7 @@ fun LocationShareRow(
)
}
Text(
text = if (item.isLive) "Sharing live location" else item.formattedTimestamp,
text = if (item.isLive) stringResource(CommonStrings.screen_room_live_location_banner) else item.formattedTimestamp,
style = ElementTheme.typography.fontBodySmRegular,
color = if(item.isLive) ElementTheme.colors.textPrimary else ElementTheme.colors.textSecondary,
maxLines = 1,

View file

@ -127,7 +127,7 @@ fun ShowLocationView(
}
if (state.locationShares.isEmpty()) {
Text(
text = "Nobody is sharing their location",
text = stringResource(CommonStrings.screen_live_location_sheet_nobody_sharing),
style = ElementTheme.typography.fontBodyLgMedium,
color = ElementTheme.colors.textPrimary,
modifier = Modifier