Skip to content

Commit

Permalink
use p for land types
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed Feb 29, 2024
1 parent 3960e93 commit b58b712
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/game/locations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,27 +280,31 @@ export function Locations(): JSX.Element | null {
</Grid>
<Grid item style={{ textAlign: "center" }} xs={2} sm={1}>
{specialLocation && (
<Typography component="h4" variant="h6">
<Typography variant="h6" component="h4">
{specialLocation.name}
</Typography>
)}
{specialLocation && (
<Typography variant="subtitle2">{specialLocation.type}</Typography>
<Typography variant="subtitle2" component="p">
{specialLocation.type}
</Typography>
)}
{playerLocation && (
<React.Fragment>
<Typography variant="h6" component="h4">
{playerLocation.publicOwner?.name ?? "???"}'s Settlement
</Typography>
<Typography variant="subtitle2">{playerLocation.type}</Typography>
<Typography variant="subtitle2" component="p">
{playerLocation.type}
</Typography>
</React.Fragment>
)}
{!specialLocation && !playerLocation && locationDetails && (
<React.Fragment>
<Typography variant="h6" component="h4">
Wilderness
</Typography>
<Typography variant="subtitle2">
<Typography variant="subtitle2" component="p">
{locationDetails.terrain.terrain}
</Typography>
</React.Fragment>
Expand All @@ -310,7 +314,9 @@ export function Locations(): JSX.Element | null {
<Typography variant="h6" component="h4">
&nbsp;
</Typography>
<Typography variant="subtitle2">loading...</Typography>
<Typography variant="subtitle2" component="p">
loading...
</Typography>
</React.Fragment>
)}
<Map
Expand Down

0 comments on commit b58b712

Please sign in to comment.