Enable TranscendencePopover for summons
This commit is contained in:
parent
dd76827995
commit
c55f6f9708
1 changed files with 9 additions and 8 deletions
|
|
@ -47,7 +47,9 @@ const UncapIndicator = (props: Props) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (props.ulb) {
|
if (props.xlb) {
|
||||||
|
numStars = 6
|
||||||
|
} else if (props.ulb) {
|
||||||
numStars = 5
|
numStars = 5
|
||||||
} else if (props.flb) {
|
} else if (props.flb) {
|
||||||
numStars = 4
|
numStars = 4
|
||||||
|
|
@ -76,13 +78,15 @@ const UncapIndicator = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const transcendence = (i: number) => {
|
const transcendence = (i: number) => {
|
||||||
|
const tabIndex = props.position * 7 + i + 1
|
||||||
return props.type === 'character' || props.type === 'summon' ? (
|
return props.type === 'character' || props.type === 'summon' ? (
|
||||||
<TranscendencePopover
|
<TranscendencePopover
|
||||||
open={popoverOpen}
|
open={popoverOpen}
|
||||||
stage={props.transcendenceStage ? props.transcendenceStage : 0}
|
stage={props.transcendenceStage ? props.transcendenceStage : 0}
|
||||||
onOpenChange={togglePopover}
|
onOpenChange={togglePopover}
|
||||||
sendValue={sendTranscendenceStage}
|
sendValue={sendTranscendenceStage}
|
||||||
tabIndex={props.position * 7 + 7 + 1}
|
key={`star_${i}`}
|
||||||
|
tabIndex={tabIndex}
|
||||||
>
|
>
|
||||||
<TranscendenceStar
|
<TranscendenceStar
|
||||||
key={`star_${i}`}
|
key={`star_${i}`}
|
||||||
|
|
@ -90,7 +94,6 @@ const UncapIndicator = (props: Props) => {
|
||||||
editable={props.editable}
|
editable={props.editable}
|
||||||
interactive={false}
|
interactive={false}
|
||||||
onStarClick={() => togglePopover(true)}
|
onStarClick={() => togglePopover(true)}
|
||||||
tabIndex={props.position * 7 + i + 1}
|
|
||||||
/>
|
/>
|
||||||
</TranscendencePopover>
|
</TranscendencePopover>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -99,8 +102,7 @@ const UncapIndicator = (props: Props) => {
|
||||||
stage={props.transcendenceStage}
|
stage={props.transcendenceStage}
|
||||||
editable={props.editable}
|
editable={props.editable}
|
||||||
interactive={false}
|
interactive={false}
|
||||||
onStarClick={() => togglePopover(true)}
|
tabIndex={tabIndex}
|
||||||
tabIndex={props.position * 7 + i + 1}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -146,8 +148,6 @@ const UncapIndicator = (props: Props) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const transcendencePopover = () => {}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="Uncap">
|
<div className="Uncap">
|
||||||
<ul className="UncapIndicator">
|
<ul className="UncapIndicator">
|
||||||
|
|
@ -155,6 +155,8 @@ const UncapIndicator = (props: Props) => {
|
||||||
if (props.type === 'character' && i > 4) {
|
if (props.type === 'character' && i > 4) {
|
||||||
if (props.special) return ulb(i)
|
if (props.special) return ulb(i)
|
||||||
else return transcendence(i)
|
else return transcendence(i)
|
||||||
|
} else if (props.type === 'summon' && i > 4) {
|
||||||
|
return transcendence(i)
|
||||||
} else if (
|
} else if (
|
||||||
(props.special && props.type === 'character' && i == 3) ||
|
(props.special && props.type === 'character' && i == 3) ||
|
||||||
(props.type === 'character' && i == 4) ||
|
(props.type === 'character' && i == 4) ||
|
||||||
|
|
@ -166,7 +168,6 @@ const UncapIndicator = (props: Props) => {
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
{transcendencePopover()}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue