fix: temp disable features using unavailable data
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import { _ } from "@/lib/translation"
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import styles from "./currentPointsBalance.module.css"
|
||||
|
||||
function CurrentPointsBalance() {
|
||||
const points = 30000
|
||||
|
||||
async function CurrentPointsBalance() {
|
||||
const user = await serverClient().user.get()
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
<h2>{_("Total points*")}</h2>
|
||||
<p className={styles.points}>{`${_("Points")}: ${points}`}</p>
|
||||
<h2>{`${_("Total points")}*`}</h2>
|
||||
<p
|
||||
className={styles.points}
|
||||
>{`${_("Points")}: ${user.membership.currentPoints}`}</p>
|
||||
<p className={styles.disclaimer}>
|
||||
{_("*Points may take up to 10 days to be displayed.")}
|
||||
{`*${_("Points may take up to 10 days to be displayed.")}`}
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user