gab-social/app/javascript/gabsocial/components/modal/pro_upgrade_modal.js

61 lines
1.9 KiB
JavaScript
Raw Normal View History

2020-02-24 23:25:55 +00:00
import { defineMessages, injectIntl } from 'react-intl'
import ImmutablePureComponent from 'react-immutable-pure-component'
import Button from '../button'
import Text from '../text'
import ModalLayout from './modal_layout'
const messages = defineMessages({
2020-02-24 23:25:55 +00:00
title: { id: 'promo.gab_pro', defaultMessage: 'Upgrade to GabPRO' },
text: { id: 'pro_upgrade_modal.text', defaultMessage: 'Gab is fully funded by people like you. Please consider supporting us on our mission to defend free expression online for all people.' },
benefits: { id: 'pro_upgrade_modal.benefits', defaultMessage: 'Here are just some of the benefits that thousands of GabPRO members receive:' },
})
2020-02-24 23:25:55 +00:00
export default
@injectIntl
class ProUpgradeModal extends ImmutablePureComponent {
static propTypes = {
intl: PropTypes.object.isRequired,
2020-04-07 02:53:23 +01:00
onClose: PropTypes.func.isRequired,
2020-02-24 23:25:55 +00:00
}
2020-02-24 23:25:55 +00:00
render() {
2020-04-07 02:53:23 +01:00
const { intl, onClose } = this.props
return (
2020-04-07 02:53:23 +01:00
<ModalLayout
title={intl.formatMessage(messages.title)}
2020-04-28 06:33:58 +01:00
width={460}
2020-04-07 02:53:23 +01:00
onClose={onClose}
>
2020-03-11 23:56:18 +00:00
<Text>
{intl.formatMessage(messages.text)}
</Text>
<Text>
{intl.formatMessage(messages.benefits)}
</Text>
<div className={[_s.default, _s.my10].join(' ')}>
<Text> Schedule Posts</Text>
<Text> Get Verified</Text>
<Text> Create Groups</Text>
<Text> Larger Video and Image Uploads</Text>
<Text> Receive the PRO Badge</Text>
<Text> Remove in-feed promotions</Text>
2020-06-17 18:25:10 +01:00
<Text> Compose Rich Text posts (Bold, Italic, Underline and more)</Text>
</div>
2020-02-24 23:25:55 +00:00
2020-03-11 23:56:18 +00:00
<Button
href='https://pro.gab.com'
>
<Text color='inherit' weight='bold' align='center'>
{intl.formatMessage(messages.title)}
</Text>
2020-02-24 23:25:55 +00:00
</Button>
</ModalLayout>
)
}
2020-04-08 02:06:59 +01:00
}