Add imports per hour needed

This commit is contained in:
Calli
2024-07-01 15:52:40 +03:00
parent 5d7b4d85d4
commit fe82beabc1

View File

@@ -62,7 +62,9 @@ export const PlanetTableRow = ({
const planetInfoUniverse = planet.infoUniverse; const planetInfoUniverse = planet.infoUniverse;
const { expired, extractors, localProduction, localImports, localExports } = const { expired, extractors, localProduction, localImports, localExports } =
planetCalculations(planet); planetCalculations(planet);
const planetConfig = character.planetConfig.find(p => p.planetId === planet.planet_id) const planetConfig = character.planetConfig.find(
(p) => p.planetId === planet.planet_id,
);
const { colors } = useContext(ColorContext); const { colors } = useContext(ColorContext);
return ( return (
<TableRow <TableRow
@@ -143,7 +145,7 @@ export const PlanetTableRow = ({
key={`import-${character.character.characterId}-${planet.planet_id}-${i.type_id}`} key={`import-${character.character.characterId}-${planet.planet_id}-${i.type_id}`}
fontSize={theme.custom.smallText} fontSize={theme.custom.smallText}
> >
{PI_TYPES_MAP[i.type_id].name} {PI_TYPES_MAP[i.type_id].name} ({i.quantity}/h)
</Typography> </Typography>
))} ))}
</div> </div>
@@ -167,7 +169,7 @@ export const PlanetTableRow = ({
key={`export-excluded-${character.character.characterId}-${planet.planet_id}-${exports.typeId}`} key={`export-excluded-${character.character.characterId}-${planet.planet_id}-${exports.typeId}`}
fontSize={theme.custom.smallText} fontSize={theme.custom.smallText}
> >
{planetConfig?.excludeFromTotals ? 'ex' : ''} {planetConfig?.excludeFromTotals ? "ex" : ""}
</Typography> </Typography>
))} ))}
</div> </div>