Progress
This commit is contained in:
20
app/javascript/gabsocial/components/panel/progress_panel.js
Normal file
20
app/javascript/gabsocial/components/panel/progress_panel.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { me, monthlyExpensesComplete } from '../../initial_state'
|
||||
import PanelLayout from './panel_layout';
|
||||
import ProgressBar from '../progress_bar'
|
||||
|
||||
export default class ProgressPanel extends PureComponent {
|
||||
render() {
|
||||
if (!monthlyExpensesComplete || !me) return null
|
||||
|
||||
return (
|
||||
<PanelLayout
|
||||
title="Gab's Operational Expenses"
|
||||
subtitle="We are 100% funded by you"
|
||||
icon="comments"
|
||||
hasBackground
|
||||
>
|
||||
<ProgressBar progress={monthlyExpensesComplete}/>
|
||||
</PanelLayout>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user