Skip to content

Commit

Permalink
fix: Remove Chip from Typography to suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
COSMO-EMI committed Oct 26, 2021
1 parent 5119a29 commit d2c1603
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cards/ScenarioNode/ScenarioNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ export const ScenarioNode = ({ datasets, scenario, showDeleteIcon, deleteScenari
<Typography className={classes.scenarioTitle} variant="h4" data-content={scenario.name}>
{scenario.name}
</Typography>
<Typography>
{getStatusLabel()}
<div className={classes.statusRow}>
<Typography>{getStatusLabel()}</Typography>
<Chip
size="small"
label={getTranslatedStatus(scenario.state)}
className={getStatusClassName(classes, scenario.state)}
/>
<br />
</div>
<Typography>
{getDatasetsLabel()}
<br />
<span className={classes.datasets}>{DatasetUtils.getDatasetNames(datasets, scenario.datasetList)}</span>
Expand Down
4 changes: 4 additions & 0 deletions src/cards/ScenarioNode/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import { makeStyles } from '@material-ui/core';

const useStyles = makeStyles((theme) => ({
statusRow: {
display: 'flex',
flexDirection: 'row',
},
scenarioHeader: {
height: '100%',
display: 'flex',
Expand Down

0 comments on commit d2c1603

Please sign in to comment.