respect showGranblueId setting in ProfileHeader
This commit is contained in:
parent
376e915ade
commit
e8608ff32d
1 changed files with 7 additions and 2 deletions
|
|
@ -18,6 +18,8 @@
|
||||||
element?: string
|
element?: string
|
||||||
/** User's Granblue Fantasy ID for profile link */
|
/** User's Granblue Fantasy ID for profile link */
|
||||||
granblueId?: string
|
granblueId?: string
|
||||||
|
/** Whether the user wants to show their Granblue ID on profile */
|
||||||
|
showGranblueId?: boolean
|
||||||
/** Whether to show crew gamertag */
|
/** Whether to show crew gamertag */
|
||||||
showCrewGamertag?: boolean
|
showCrewGamertag?: boolean
|
||||||
/** The crew's gamertag to display */
|
/** The crew's gamertag to display */
|
||||||
|
|
@ -39,6 +41,7 @@
|
||||||
isOwner = false,
|
isOwner = false,
|
||||||
element = 'null',
|
element = 'null',
|
||||||
granblueId,
|
granblueId,
|
||||||
|
showGranblueId = false,
|
||||||
showCrewGamertag = false,
|
showCrewGamertag = false,
|
||||||
crewGamertag,
|
crewGamertag,
|
||||||
viewerCrewRole = null,
|
viewerCrewRole = null,
|
||||||
|
|
@ -46,9 +49,11 @@
|
||||||
targetUserHasCrew = false
|
targetUserHasCrew = false
|
||||||
}: Props = $props()
|
}: Props = $props()
|
||||||
|
|
||||||
// GBF profile URL
|
// GBF profile URL - only show if user has enabled the setting
|
||||||
const gbfProfileUrl = $derived(
|
const gbfProfileUrl = $derived(
|
||||||
granblueId ? `https://game.granbluefantasy.jp/#profile/${granblueId}` : null
|
granblueId && showGranblueId
|
||||||
|
? `https://game.granbluefantasy.jp/#profile/${granblueId}`
|
||||||
|
: null
|
||||||
)
|
)
|
||||||
|
|
||||||
const avatarSrc = $derived(getAvatarSrc(avatarPicture))
|
const avatarSrc = $derived(getAvatarSrc(avatarPicture))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue