Fully implemented the register flow

This commit is contained in:
Tiago Ribeiro
2023-07-25 19:53:48 +01:00
parent 02260d496c
commit f5c3abb310
4 changed files with 79 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ export default function Home() {
<BsStar className="w-8 h-8 text-mti-red-light" />
</div>
<div className="flex flex-col">
<span className="font-bold text-xl">{averageScore(stats)}%</span>
<span className="font-bold text-xl">{stats.length > 0 ? averageScore(stats) : 0}%</span>
<span className="font-normal text-base text-mti-gray-dim">Average Score</span>
</div>
</div>
@@ -133,7 +133,9 @@ export default function Home() {
</section>
<section className="flex flex-col gap-3">
<span className="font-bold text-lg">Bio</span>
<span className="text-mti-gray-taupe">{user.bio || "Your bio will appear here..."}</span>
<span className="text-mti-gray-taupe">
{user.bio || "Your bio will appear here, you can change it by clicking on your name in the top right corner."}
</span>
</section>
<section className="flex flex-col gap-3">
<span className="font-bold text-lg">Score History</span>