Skip to content

Commit

Permalink
[frontend] Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
damgouj committed Sep 16, 2024
1 parent a8d7000 commit d0b2bba
Showing 1 changed file with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,40 +113,40 @@ const AtomicTestingDetail: FunctionComponent<Props> = () => {
<Grid item xs={6} style={{ marginBottom: 30 }}>
<Typography variant="h4">{t('Command Lines')}</Typography>
{injectResultDto ? (
<Paper variant="outlined" classes={{root: classes.paper}}>
<Typography variant="subtitle1" className={classes.header} gutterBottom>
{t('Content')}
<Paper variant="outlined" classes={{ root: classes.paper }}>
<Typography variant="subtitle1" className={classes.header} gutterBottom>
{t('Content')}
</Typography>
{(injectResultDto.inject_commands_lines?.content?.length ?? 0) > 0 ? <pre>
<Typography variant="body1" gutterBottom>
{injectResultDto.inject_commands_lines?.content?.map((content, index) => (
<li key={index}>{content}</li>
))}
</Typography>
{(injectResultDto.inject_commands_lines?.content?.length ?? 0) > 0 ? <pre>
<Typography variant="body1" gutterBottom>
{injectResultDto.inject_commands_lines?.content?.map((content, index) => (
<li key={index}>{content}</li>
))}
</Typography>
</pre> : '-'}
<Typography variant="subtitle1" className={classes.header} gutterBottom>
{t('Cleanup command')}
</Typography>
{(injectResultDto.inject_commands_lines?.cleanup_command?.length ?? 0) > 0 ? <pre>
<Typography variant="body1" gutterBottom>
{injectResultDto.inject_commands_lines?.cleanup_command?.map((content, index) => (
<li key={index}>{content}</li>
))}
</Typography>
</pre> : '-'}
<Typography variant="subtitle1" className={classes.header} gutterBottom>
{t('External ID')}
</Typography>
{injectResultDto.inject_commands_lines?.external_id ? <pre>
<Typography variant="body1" gutterBottom>
{injectResultDto.inject_commands_lines?.external_id}
</Typography>
</pre> : '-'}
</Paper>
) : (
<Paper variant="outlined" classes={{ root: classes.paper }}>
<Typography variant="body1">{t('No data available')}</Typography>
</Paper>
</pre> : '-'}
<Typography variant="subtitle1" className={classes.header} gutterBottom>
{t('Cleanup command')}
</Typography>
{(injectResultDto.inject_commands_lines?.cleanup_command?.length ?? 0) > 0 ? <pre>
<Typography variant="body1" gutterBottom>
{injectResultDto.inject_commands_lines?.cleanup_command?.map((content, index) => (
<li key={index}>{content}</li>
))}
</Typography>
</pre> : '-'}
<Typography variant="subtitle1" className={classes.header} gutterBottom>
{t('External ID')}
</Typography>
{injectResultDto.inject_commands_lines?.external_id ? <pre>
<Typography variant="body1" gutterBottom>
{injectResultDto.inject_commands_lines?.external_id}
</Typography>
</pre> : '-'}
</Paper>
) : (
<Paper variant="outlined" classes={{ root: classes.paper }}>
<Typography variant="body1">{t('No data available')}</Typography>
</Paper>
)}
</Grid>
<Grid item xs={6} style={{ marginBottom: 30 }}>
Expand Down

0 comments on commit d0b2bba

Please sign in to comment.