bigbuffet-rw/app/gabsocial/components/progress_bar.js
2020-03-27 15:59:38 -05:00

15 lines
394 B
JavaScript

import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ProgressBar extends ImmutablePureComponent {
render() {
const { progress } = this.props;
return (
<div className='progress-bar'>
<div className='progress-bar__progress' style={{width: `${Math.floor(progress*100)}%`}}></div>
</div>
)
}
};