aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/Subscription.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-12-24 22:11:36 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-12-24 22:11:36 +0100
commitdf44b69c4655415fe1e44689ece443ec06ef0f52 (patch)
treee677ed5f5328bb3b14bc976c7392d8e259f89034 /src/components/ui/Subscription.js
parent[wip] add icon upload (diff)
parentMerge pull request #494 from heavypackets/websecurity-enable-patch (diff)
downloadferdium-app-df44b69c4655415fe1e44689ece443ec06ef0f52.tar.gz
ferdium-app-df44b69c4655415fe1e44689ece443ec06ef0f52.tar.zst
ferdium-app-df44b69c4655415fe1e44689ece443ec06ef0f52.zip
Merge branch 'develop' into feature/icon-upload
Diffstat (limited to 'src/components/ui/Subscription.js')
-rw-r--r--src/components/ui/Subscription.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/components/ui/Subscription.js b/src/components/ui/Subscription.js
index fe0925a26..8bff72095 100644
--- a/src/components/ui/Subscription.js
+++ b/src/components/ui/Subscription.js
@@ -93,6 +93,10 @@ const messages = defineMessages({
93 id: 'subscription.mining.moreInformation', 93 id: 'subscription.mining.moreInformation',
94 defaultMessage: '!!!Get more information about this plan', 94 defaultMessage: '!!!Get more information about this plan',
95 }, 95 },
96 euTaxInfo: {
97 id: 'subscription.euTaxInfo',
98 defaultMessage: '!!!EU residents: local sales tax may apply',
99 },
96}); 100});
97 101
98@observer 102@observer
@@ -144,14 +148,18 @@ export default class SubscriptionForm extends Component {
144 label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year') 148 label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year')
145 ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}` 149 ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}`
146 : 'yearly'}`, 150 : 'yearly'}`,
147 }, {
148 value: 'mining',
149 label: intl.formatMessage(messages.typeMining),
150 }], 151 }],
151 }, 152 },
152 }, 153 },
153 }; 154 };
154 155
156 if (this.props.plan.miner) {
157 form.fields.paymentTier.options.push({
158 value: 'mining',
159 label: intl.formatMessage(messages.typeMining),
160 });
161 }
162
155 if (this.props.showSkipOption) { 163 if (this.props.showSkipOption) {
156 form.fields.paymentTier.options.unshift({ 164 form.fields.paymentTier.options.unshift({
157 value: 'skip', 165 value: 'skip',
@@ -259,6 +267,11 @@ export default class SubscriptionForm extends Component {
259 onClick={() => handlePayment(this.form.$('paymentTier').value)} 267 onClick={() => handlePayment(this.form.$('paymentTier').value)}
260 /> 268 />
261 )} 269 )}
270 {this.form.$('paymentTier').value !== 'skip' && this.form.$('paymentTier').value !== 'mining' && (
271 <p className="legal">
272 {intl.formatMessage(messages.euTaxInfo)}
273 </p>
274 )}
262 </Loader> 275 </Loader>
263 ); 276 );
264 } 277 }