Skip to content

Commit

Permalink
update copy text
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Nov 18, 2024
1 parent f84ff5c commit 104f513
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ object DateTimeHelper {
"${if (totalMinutes.absoluteValue == 1L) "min" else "mins"} ago"

totalMinutes == 0L -> "Now"
hours == 1L -> "In ${hours.absoluteValue}h ${partialMinutes.absoluteValue}m"
hours >= 2 -> "In ${hours.absoluteValue}h"
else -> "In ${totalMinutes.absoluteValue} ${if (totalMinutes.absoluteValue == 1L) "min" else "mins"}"
hours == 1L -> "in ${hours.absoluteValue}h ${partialMinutes.absoluteValue}m"
hours >= 2 -> "in ${hours.absoluteValue}h"
else -> "in ${totalMinutes.absoluteValue} ${if (totalMinutes.absoluteValue == 1L) "min" else "mins"}"
}
Timber.d("\t minutes: $partialMinutes, hours: $hours, formattedDifference: $formattedDifference -> originTime")
return formattedDifference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fun UsualRideScreen(

item {
Text(
text = "What's your favourite color, mate?",
text = "What's your favourite colour, mate?",
style = KrailTheme.typography.bodyMedium,
modifier = Modifier
.padding(horizontal = 24.dp)
Expand All @@ -104,7 +104,7 @@ fun UsualRideScreen(
}

Text(
text = if (selectedProductClass != null) "Let's Go, Yeah!" else "Pick one.",
text = if (selectedProductClass != null) "Let's Go, Yeah!" else "Pick a colour.",
modifier = Modifier
.fillMaxWidth()
.clip(RoundedCornerShape(topStart = 24.dp, topEnd = 24.dp))
Expand All @@ -131,7 +131,11 @@ fun UsualRideScreen(
}
.padding(vertical = 12.dp),
textAlign = TextAlign.Center,
style = KrailTheme.typography.titleMedium,
style = if (selectedProductClass != null) {
KrailTheme.typography.titleMedium
} else {
KrailTheme.typography.bodyLarge
},
)
}
}
Expand Down

0 comments on commit 104f513

Please sign in to comment.