bigbuffet-rw/app/soapbox/components/progress_bar.js
2020-05-28 17:56:55 -05:00

17 lines
395 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>
);
}
};