Change funding bar text.
This commit is contained in:
parent
e44e83a857
commit
addfa1f8e0
@ -65,7 +65,7 @@ class ProgressPanel extends React.PureComponent {
|
|||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
progressTitle: { id: 'progress_title', defaultMessage: '{value}% covered this month' },
|
progressTitle: { id: 'progress_title', defaultMessage: '{value}% covered this month' },
|
||||||
operationsTitle: { id: 'operations_title', defaultMessage: "Gab's Operational Expenses" },
|
operationsTitle: { id: 'operations_title', defaultMessage: "Help keep Gab online" },
|
||||||
operationsSubtitle: { id: 'operations_subtitle', defaultMessage: "We're 100% funded by you." },
|
operationsSubtitle: { id: 'operations_subtitle', defaultMessage: "We're 100% funded by you." },
|
||||||
donationTitle: { id: 'make_donation', defaultMessage: 'Make a Donation' },
|
donationTitle: { id: 'make_donation', defaultMessage: 'Make a Donation' },
|
||||||
})
|
})
|
||||||
@ -88,4 +88,4 @@ ProgressPanel.propTypes = {
|
|||||||
onFetchExpenses: PropTypes.func.isRequired,
|
onFetchExpenses: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(ProgressPanel))
|
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(ProgressPanel))
|
||||||
|
@ -13,7 +13,7 @@ import Button from '../button'
|
|||||||
import Text from '../text'
|
import Text from '../text'
|
||||||
|
|
||||||
class ProgressInjection extends React.PureComponent {
|
class ProgressInjection extends React.PureComponent {
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { isFetched, isXS } = this.props
|
const { isFetched, isXS } = this.props
|
||||||
if (!isFetched && isXS) {
|
if (!isFetched && isXS) {
|
||||||
@ -31,7 +31,7 @@ class ProgressInjection extends React.PureComponent {
|
|||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
if ((value === 0 && isFetched) || !isXS) return <div />
|
if ((value === 0 && isFetched) || !isXS) return <div />
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TimelineInjectionLayout
|
<TimelineInjectionLayout
|
||||||
title={intl.formatMessage(messages.operationsTitle)}
|
title={intl.formatMessage(messages.operationsTitle)}
|
||||||
@ -56,7 +56,7 @@ class ProgressInjection extends React.PureComponent {
|
|||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
progressTitle: { id: 'progress_title', defaultMessage: '{value}% covered this month' },
|
progressTitle: { id: 'progress_title', defaultMessage: '{value}% covered this month' },
|
||||||
operationsTitle: { id: 'operations_title', defaultMessage: "Gab's Operational Expenses" },
|
operationsTitle: { id: 'operations_title', defaultMessage: "Help keep Gab online" },
|
||||||
operationsSubtitle: { id: 'operations_subtitle', defaultMessage: "We're 100% funded by you." },
|
operationsSubtitle: { id: 'operations_subtitle', defaultMessage: "We're 100% funded by you." },
|
||||||
donationTitle: { id: 'make_donation', defaultMessage: 'Make a Donation' },
|
donationTitle: { id: 'make_donation', defaultMessage: 'Make a Donation' },
|
||||||
})
|
})
|
||||||
@ -80,4 +80,4 @@ ProgressInjection.propTypes = {
|
|||||||
onFetchExpenses: PropTypes.func.isRequired,
|
onFetchExpenses: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(ProgressInjection))
|
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(ProgressInjection))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user