update text

This commit is contained in:
Zamitto 2024-06-14 20:37:45 -03:00
parent e8a1aa0616
commit 1997dbcd5d
2 changed files with 10 additions and 5 deletions

View file

@ -230,6 +230,6 @@
"amount_hours": "{{amount}} horas",
"amount_minutes": "{{amount}} minutos",
"play_time": "Jogado por {{amount}}",
"last_time_played": "Jogou por último {{period}}"
"last_time_played": "Jogou {{period}}"
}
}

View file

@ -46,7 +46,6 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
navigate(buildGameDetailsPath(game));
};
console.log(userProfile);
return (
<>
<section
@ -73,7 +72,7 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
<div className={styles.profileContent}>
<div className={styles.profileGameSection}>
<div>
<h2>Feed</h2>
<h2>Atividade</h2>
</div>
<div
style={{
@ -97,8 +96,14 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
<div className={styles.gameInformation}>
<h4>{game.title}</h4>
<small>
{formatDistance(game.lastTimePlayed!, new Date(), {
addSuffix: true,
{t("last_time_played", {
period: formatDistance(
game.lastTimePlayed!,
new Date(),
{
addSuffix: true,
}
),
})}
</small>
</div>