Reapply "Add missing admin action files and navigation links"
This reverts commit 4d515bc400.
This commit is contained in:
1 parent
96ed768f14
commit
5b4228261a
338 files changed
+28143
-5948
No files matched your search
+5
-12
@@ -39,8 +39,7 @@ function feedbackStyle(tone: "success" | "error" | "warning"): CSSProperties {
|
||||
const ERROR_MESSAGES: Record<string, string> = {
|
||||
not_enough: "You do not have enough referrals to claim your reward yet.",
|
||||
no_referrals: "You haven't referred anyone yet — share your link to get started.",
|
||||
bad_config:
|
||||
"The referral reward is not configured correctly. Please contact a staff member.",
|
||||
bad_config: "The referral reward is not configured correctly. Please contact a staff member.",
|
||||
error: "Something went wrong while claiming your reward. Please try again.",
|
||||
};
|
||||
|
||||
@@ -159,11 +158,7 @@ export default async function MePage({ searchParams }: { searchParams: SearchPar
|
||||
) : null}
|
||||
|
||||
{/* Header card -------------------------------------------------- */}
|
||||
<ContentCard
|
||||
icon="🏠"
|
||||
title={user.username}
|
||||
subtitle={user.motto || "Welcome back!"}
|
||||
/>
|
||||
<ContentCard icon="🏠" title={user.username} subtitle={user.motto || "Welcome back!"} />
|
||||
|
||||
{/* Stat tiles --------------------------------------------------- */}
|
||||
<div className="card-grid sm-2 lg-3">
|
||||
@@ -185,9 +180,7 @@ export default async function MePage({ searchParams }: { searchParams: SearchPar
|
||||
padded={onlineFriends.length === 0}
|
||||
>
|
||||
{onlineFriends.length === 0 ? (
|
||||
<EmptyState icon="💤">
|
||||
No friends online right now. Check back later!
|
||||
</EmptyState>
|
||||
<EmptyState icon="💤">No friends online right now. Check back later!</EmptyState>
|
||||
) : (
|
||||
<div className="card-grid sm-2 lg-3" style={{ padding: "1rem" }}>
|
||||
{onlineFriends.map((friend) => {
|
||||
@@ -247,8 +240,8 @@ export default async function MePage({ searchParams }: { searchParams: SearchPar
|
||||
</p>
|
||||
|
||||
<div role="note" style={feedbackStyle("warning")}>
|
||||
⚠️ Boosting referrals by making your own accounts will lead to
|
||||
removal of all progress, currency, inventory and a potential ban.
|
||||
⚠️ Boosting referrals by making your own accounts will lead to removal of all progress,
|
||||
currency, inventory and a potential ban.
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user