-
Notifications
You must be signed in to change notification settings - Fork 0
/
budgetBar.js
29 lines (25 loc) · 905 Bytes
/
budgetBar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import 'antd/dist/antd.css';
import './budgetBar.css';
import {Progress } from 'antd';
class BudgetBar extends React.PureComponent{
render(){
const {visible, isLoading, usedInputBudget, inputBudget} = this.props;
return (
<div>
{visible && !isLoading ?
<div className="budgetBar" >
<strong>Reward Budget</strong>
<Progress
strokeColor={{'0%': '#108ee9','100%': '#87d068',}}
percent={(usedInputBudget/inputBudget)*100}
showInfo={false}
/>
<p className="budgetCount">{`${usedInputBudget}/${inputBudget}`}</p>
</div> : null
}
</div>
)
}
}
export default BudgetBar;