diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-28 11:28:56 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-28 10:28:56 +0300 |
| commit | fa723fb81bb8af91b38a055b1e21c3afc019c5a1 (patch) | |
| tree | 1557715d7b2cba51ec1cf037ff66324b9e978cfb /frontend/src/pages | |
| parent | fix/backend: have timeline start at the start of the year (#295) (diff) | |
| download | lphub-fa723fb81bb8af91b38a055b1e21c3afc019c5a1.tar.gz lphub-fa723fb81bb8af91b38a055b1e21c3afc019c5a1.tar.bz2 lphub-fa723fb81bb8af91b38a055b1e21c3afc019c5a1.zip | |
feat/frontend: add dates to recent scores in homepage (#296)
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/pages/Homepage.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/pages/Homepage.tsx b/frontend/src/pages/Homepage.tsx index c0dbf68..d7b5158 100644 --- a/frontend/src/pages/Homepage.tsx +++ b/frontend/src/pages/Homepage.tsx | |||
| @@ -226,7 +226,10 @@ const Homepage: React.FC = () => { | |||
| 226 | <div className="score-map"> | 226 | <div className="score-map"> |
| 227 | <Link key={index} to={`/maps/${score.map.id}`} className="score-map">{score.map.name}</Link> | 227 | <Link key={index} to={`/maps/${score.map.id}`} className="score-map">{score.map.name}</Link> |
| 228 | </div> | 228 | </div> |
| 229 | <div className="score-portals">{score.score_count} { } portals</div> | 229 | <div className="score-portals"> |
| 230 | {score.score_count} portals | ||
| 231 | <span className="score-date"> ยท {new Date(score.date).toISOString().split("T")[0]}</span> | ||
| 232 | </div> | ||
| 230 | </div> | 233 | </div> |
| 231 | ))} | 234 | ))} |
| 232 | </div> | 235 | </div> |