UI: Show faction enemies even after joining (#2046)

This commit is contained in:
catloversg
2025-03-31 01:56:21 +07:00
committed by GitHub
parent 282bf87022
commit 187fbea073
2 changed files with 8 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ const FactionElement = (props: FactionElementProps): React.ReactElement => {
</Tooltip>
)}
{!props.faction.isMember && facInfo.enemies.length > 0 && (
{facInfo.enemies.length > 0 && (
<Tooltip
title={
<Typography component="div">
@@ -164,7 +164,7 @@ const FactionElement = (props: FactionElementProps): React.ReactElement => {
<li key={enemy}>{enemy}</li>
))}
</ul>
Joining this Faction will prevent you from joining its enemies
{!props.faction.isMember && <>Joining this Faction will prevent you from joining its enemies</>}
</Typography>
}
>

View File

@@ -52,6 +52,12 @@ export function Info(props: IProps): React.ReactElement {
return (
<>
<Typography classes={{ root: classes.noformat }}>{props.factionInfo.infoText}</Typography>
{props.factionInfo.enemies.length > 0 && (
<Typography component="div">
<br />
This faction is enemies with: {props.factionInfo.enemies.join(", ")}.
</Typography>
)}
<Typography>-------------------------</Typography>
<Box display="flex">
<Tooltip