website refactor
This commit is contained in:
@@ -70,10 +70,9 @@ export function ProfileTemplate({
|
||||
...viewData.driver,
|
||||
country: viewData.driver.countryCode,
|
||||
iracingId: Number(viewData.driver.iracingId) || 0,
|
||||
joinedAt: new Date().toISOString(), // Placeholder
|
||||
}}
|
||||
stats={viewData.stats ? { rating: Number(viewData.stats.ratingLabel) || 0 } : null}
|
||||
globalRank={Number(viewData.stats?.globalRankLabel) || 0}
|
||||
stats={viewData.stats ? { ratingLabel: viewData.stats.ratingLabel } : null}
|
||||
globalRankLabel={viewData.stats?.globalRankLabel || '—'}
|
||||
onAddFriend={onFriendRequestSend}
|
||||
friendRequestSent={friendRequestSent}
|
||||
isOwnProfile={true}
|
||||
@@ -99,7 +98,7 @@ export function ProfileTemplate({
|
||||
memberships={viewData.teamMemberships.map(m => ({
|
||||
team: { id: m.teamId, name: m.teamName },
|
||||
role: m.roleLabel,
|
||||
joinedAt: new Date() // Placeholder
|
||||
joinedAtLabel: m.joinedAtLabel
|
||||
}))}
|
||||
/>
|
||||
</Stack>
|
||||
@@ -117,7 +116,7 @@ export function ProfileTemplate({
|
||||
achievements={viewData.extendedProfile.achievements.map(a => ({
|
||||
...a,
|
||||
rarity: a.rarityLabel,
|
||||
earnedAt: new Date() // Placeholder
|
||||
earnedAtLabel: a.earnedAtLabel
|
||||
}))}
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user