mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
F OpenNebula/one#5422: Add title prop
This commit is contained in:
parent
8d8245b68a
commit
505e65d693
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user