generated from nhcarrigan/template
feat: add more profile stats and auto-populate edit modal
Exposes four new stats on public profiles (bosses defeated, quests completed, adventurers recruited, achievements unlocked) with corresponding visibility toggles. The edit modal now auto-populates the character name, bio, and settings from the server on open.
This commit is contained in:
@@ -74,6 +74,30 @@ export const ProfilePage = ({ discordId }: ProfilePageProps): React.JSX.Element
|
||||
label: "Total Clicks",
|
||||
date: false,
|
||||
},
|
||||
s.showBossesDefeated && {
|
||||
icon: "💀",
|
||||
value: String(profile.bossesDefeated),
|
||||
label: "Bosses Defeated",
|
||||
date: false,
|
||||
},
|
||||
s.showQuestsCompleted && {
|
||||
icon: "📜",
|
||||
value: String(profile.questsCompleted),
|
||||
label: "Quests Completed",
|
||||
date: false,
|
||||
},
|
||||
s.showAdventurersRecruited && {
|
||||
icon: "⚔️",
|
||||
value: formatNumber(profile.adventurersRecruited),
|
||||
label: "Adventurers Recruited",
|
||||
date: false,
|
||||
},
|
||||
s.showAchievementsUnlocked && {
|
||||
icon: "🏆",
|
||||
value: String(profile.achievementsUnlocked),
|
||||
label: "Achievements Unlocked",
|
||||
date: false,
|
||||
},
|
||||
s.showGuildFounded && {
|
||||
icon: "📅",
|
||||
value: memberSince,
|
||||
|
||||
Reference in New Issue
Block a user