diff --git a/apps/frontend/src/app/Components/Character/CharacterCard.tsx b/apps/frontend/src/app/Components/Character/CharacterCard.tsx index 4cbe3405..96490858 100644 --- a/apps/frontend/src/app/Components/Character/CharacterCard.tsx +++ b/apps/frontend/src/app/Components/Character/CharacterCard.tsx @@ -57,6 +57,7 @@ type CharacterCardProps = { characterChildren?: Displayable footer?: Displayable hideStats?: boolean + hideArtifacts?: boolean isTeammateCard?: boolean } export default function CharacterCard({ @@ -69,6 +70,7 @@ export default function CharacterCard({ onClickTeammate, footer, hideStats, + hideArtifacts, isTeammateCard, }: CharacterCardProps) { const { database } = useContext(DatabaseContext) @@ -157,6 +159,7 @@ export default function CharacterCard({ character={character} onClickTeammate={onClickTeammate} hideStats={hideStats} + hideArtifacts={hideArtifacts} weaponChildren={weaponChildren} artifactChildren={artifactChildren} characterChildren={characterChildren} @@ -181,6 +184,7 @@ type ExistingCharacterCardContentProps = { character: ICachedCharacter onClickTeammate?: (characterKey: CharacterKey) => void hideStats?: boolean + hideArtifacts?: boolean weaponChildren?: Displayable artifactChildren?: Displayable characterChildren?: Displayable @@ -195,6 +199,7 @@ function ExistingCharacterCardContent({ character, onClickTeammate, hideStats, + hideArtifacts, weaponChildren, artifactChildren, characterChildren, @@ -218,7 +223,7 @@ function ExistingCharacterCardContent({ padding: hideStats ? `${theme.spacing(1)}!important` : undefined, })} > - + {!hideArtifacts && } {!isTeammateCard && ( diff --git a/apps/frontend/src/app/PageCharacter/CharacterDisplay/Tabs/TabOptimize/index.tsx b/apps/frontend/src/app/PageCharacter/CharacterDisplay/Tabs/TabOptimize/index.tsx index d8aacddf..7c3e50e8 100644 --- a/apps/frontend/src/app/PageCharacter/CharacterDisplay/Tabs/TabOptimize/index.tsx +++ b/apps/frontend/src/app/PageCharacter/CharacterDisplay/Tabs/TabOptimize/index.tsx @@ -530,21 +530,11 @@ export default function TabBuild() { - - - {/* 2 */} - {/* Level Filter */} @@ -567,7 +557,37 @@ export default function TabBuild() { /> + + + buildSettingDispatch({ mainStatAssumptionLevel })} + disabled={generatingBuilds} + /> + + {t`mainStat.levelAssTooltip.title`} + {t`mainStat.levelAssTooltip.desc`} + + } + /> + + + + {/* 2 */} + {/* Main Stat Filters */} @@ -576,25 +596,6 @@ export default function TabBuild() { >{t`mainStat.title`} - - - buildSettingDispatch({ mainStatAssumptionLevel })} - disabled={generatingBuilds} - /> - - {t`mainStat.levelAssTooltip.title`} - {t`mainStat.levelAssTooltip.desc`} - - } - /> - - {/* main stat selector */} +
{/* Footer */} {isSM && targetSelector}