Reduce redundancy of workouts
Repeating the word sets and rest looks a bit funny. This way leaves a bit to the imagination, but looks simpler. If a user doesn't understand what the description is talking about they will probably just tap the item to read it.
This commit is contained in:
parent
a65274c2d6
commit
90f09e3a31
|
@ -38,8 +38,8 @@ export default function WorkoutItem({
|
||||||
const description = useMemo(() => {
|
const description = useMemo(() => {
|
||||||
const minutes = item.minutes?.toString().padStart(2, '0');
|
const minutes = item.minutes?.toString().padStart(2, '0');
|
||||||
const seconds = item.seconds?.toString().padStart(2, '0');
|
const seconds = item.seconds?.toString().padStart(2, '0');
|
||||||
if (settings.alarm) return `${item.sets} sets ${minutes}:${seconds} rest`;
|
if (settings.alarm) return `${item.sets} x ${minutes}:${seconds}`;
|
||||||
return `${item.sets} sets`;
|
return `${item.sets}`;
|
||||||
}, [item, settings.alarm]);
|
}, [item, settings.alarm]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user