summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/nfvo-components/progressBar/ProgressBar.jsx
blob: d786aeef8ba60eac798f4c5abdb11e0b8fc7df20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';

class ProgressBar extends React.Component {
	static propTypes = {
		label: React.PropTypes.string,
		now: React.PropTypes.string.isRequired
	}
	render() {
		let {label, now} = this.props;

		return(
			<div className='progress-bar-view'>
				<div className='progress-bar-outside'>
					<div style={{width: now + '%'}} className='progress-bar-inside'></div>
				</div>
				<div className='progress-bar-view-label'>{label}</div>
			</div>
		);
	}
}

export default ProgressBar;