1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00
This commit is contained in:
Sergio Betanzos 2021-07-01 17:45:08 +02:00
parent 8d8245b68a
commit 505e65d693
No known key found for this signature in database
GPG Key ID: E3E704F097737136

View File

@ -18,8 +18,8 @@ const BorderLinearProgress = withStyles(({ palette }) => ({
}
}))(LinearProgress)
const LinearProgressWithLabel = memo(({ value, label }) => (
<div style={{ textAlign: 'end' }}>
const LinearProgressWithLabel = memo(({ value, label, title }) => (
<div style={{ textAlign: 'end' }} title={title}>
<Typography component='span' variant='body2' noWrap>{label}</Typography>
<BorderLinearProgress variant='determinate' value={value} />
</div>
@ -27,7 +27,8 @@ const LinearProgressWithLabel = memo(({ value, label }) => (
LinearProgressWithLabel.propTypes = {
value: PropTypes.number.isRequired,
label: PropTypes.string.isRequired
label: PropTypes.string.isRequired,
title: PropTypes.string
}
LinearProgressWithLabel.displayName = 'LinearProgressWithLabel'