fix: update ui

This commit is contained in:
Christel Westerberg
2024-06-19 13:11:39 +02:00
parent 29e8a56f74
commit 4233ecae42
9 changed files with 26 additions and 28 deletions

View File

@@ -13,17 +13,19 @@ export default async function Points({ user }: UserProps) {
return (
<section className={styles.points}>
<article>
<Body color="pale">{formatMessage({ id: "Total Points" })}</Body>
<Title color="pale" level="h2">
<Body color="pale" textAlign="center">
{formatMessage({ id: "Total Points" })}
</Body>
<Title color="pale" level="h2" textAlign="center">
{membership ? membership.currentPoints : "N/A"}
</Title>
</article>
<article>
<Body color="pale">
<Body color="pale" textAlign="center">
{formatMessage({ id: "Points until next level" })}
{/* TODO */}
</Body>
<Title color="pale" level="h2">
<Title color="pale" level="h2" textAlign="center">
{membership ? membership.currentPoints : "N/A"}
</Title>
</article>