Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Jan 28, 2024
1 parent 3b22fdf commit 285b7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/frontend/src/colony/ColonySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@ const ColonySelect = ({ planetId, selectedColonyId, handleChange }: Props) => {
const menuItems = Array.isArray(coloniesArray)
? coloniesArray.map((colony, index) => {
const colonyId = colony[0];
console.log('colony', colony);
return (
<MenuItem key={index} value={colonyId.toString()}>
Colony {colonyId.toString()}
colony {colonyId.toString()} - {Number(colony[1].system)}/
{Number(colony[1].orbit)}
</MenuItem>
);
})
: [];

const defaultOption = (
<MenuItem key="default-option" value="0">
Mother Planet
mother planet
</MenuItem>
);

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/ui/MissionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const MissionRow = memo(
const isArrived = (Number(mission.time_arrival) + 320) * 1000 <= Date.now();
const origin =
mission.origin <= 500
? 'Mother Planet'
? 'Mother'
: `Colony ${Number(mission.origin) % 1000}`;

return (
Expand Down

0 comments on commit 285b7af

Please sign in to comment.