hide extraction simulation for planets without extractors
This commit is contained in:
@@ -170,7 +170,7 @@ export const ExtractionSimulationDisplay: React.FC<ExtractionSimulationDisplayPr
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<Paper sx={{ p: 2 }}>
|
{extractors.length > 0 ? <Paper sx={{ p: 2 }}>
|
||||||
<Typography variant="h6" gutterBottom>
|
<Typography variant="h6" gutterBottom>
|
||||||
Extraction Simulation
|
Extraction Simulation
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -210,7 +210,7 @@ export const ExtractionSimulationDisplay: React.FC<ExtractionSimulationDisplayPr
|
|||||||
<div style={{ height: '300px' }}>
|
<div style={{ height: '300px' }}>
|
||||||
<Line data={chartData} options={chartOptions} />
|
<Line data={chartData} options={chartOptions} />
|
||||||
</div>
|
</div>
|
||||||
</Paper>
|
</Paper> : null}
|
||||||
|
|
||||||
<ProductionChainVisualization
|
<ProductionChainVisualization
|
||||||
extractedTypeIds={extractedTypeIds}
|
extractedTypeIds={extractedTypeIds}
|
||||||
|
Reference in New Issue
Block a user