Revert "Add missing admin action files and navigation links"
This reverts commit 41be6835bf.
This commit is contained in:
1 parent
4a1e1115b3
commit
4d515bc400
338 files changed
+5949
-28144
No files matched your search
@@ -12,7 +12,9 @@ export default function CopyReferralButton({ value }: { value: string }) {
|
||||
|
||||
async function copy() {
|
||||
const absolute =
|
||||
typeof window !== "undefined" && value.startsWith("/") ? `${window.location.origin}${value}` : value;
|
||||
typeof window !== "undefined" && value.startsWith("/")
|
||||
? `${window.location.origin}${value}`
|
||||
: value;
|
||||
try {
|
||||
await navigator.clipboard.writeText(absolute);
|
||||
} catch {
|
||||
|
||||
+12
-5
@@ -39,7 +39,8 @@ 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.",
|
||||
};
|
||||
|
||||
@@ -158,7 +159,11 @@ 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">
|
||||
@@ -180,7 +185,9 @@ 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) => {
|
||||
@@ -240,8 +247,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