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