From 8f60790de89ee7fd7a150a83a8ca39b4bf76509c Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 27 Sep 2019 11:23:31 +0200 Subject: Replace "invite friends" screen with "support Ferdi" screen --- .../settings/supportFerdi/SupportFerdiDashboard.js | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/components/settings/supportFerdi/SupportFerdiDashboard.js (limited to 'src/components/settings/supportFerdi') diff --git a/src/components/settings/supportFerdi/SupportFerdiDashboard.js b/src/components/settings/supportFerdi/SupportFerdiDashboard.js new file mode 100644 index 000000000..57920a4a2 --- /dev/null +++ b/src/components/settings/supportFerdi/SupportFerdiDashboard.js @@ -0,0 +1,73 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { defineMessages, intlShape } from 'react-intl'; + +import Button from '../../ui/Button'; + +const messages = defineMessages({ + headline: { + id: 'settings.supportFerdi.headline', + defaultMessage: '!!!Support Ferdi', + }, + title: { + id: 'settings.supportFerdi.title', + defaultMessage: '!!!Do you like Ferdi? Spread the love!', + }, + github: { + id: 'settings.supportFerdi.github', + defaultMessage: '!!!Star on GitHub', + }, + share: { + id: 'settings.supportFerdi.share', + defaultMessage: '!!!Tell your Friends', + }, + openCollective: { + id: 'settings.supportFerdi.openCollective', + defaultMessage: '!!!Support our Open Collective', + }, +}); + +class SupportFerdiDashboard extends Component { + static contextTypes = { + intl: intlShape, + }; + + static propTypes = { + openLink: PropTypes.func.isRequired, + }; + + render() { + const { openLink } = this.props; + const { intl } = this.context; + + return ( +
+
+ + {intl.formatMessage(messages.headline)} + +
+
+

{intl.formatMessage(messages.title)}

+
+
+ ); + } +} + +export default SupportFerdiDashboard; -- cgit v1.2.3-70-g09d2