aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-14 22:15:02 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-11-14 22:15:02 +0100
commitcffaab954338f0062772d38d8f926620e1b5bcc5 (patch)
tree10619f59fb9242d5db276b8e2d31d203bced2028 /src/components
parentAdd missing EU tax info (diff)
downloadferdium-app-cffaab954338f0062772d38d8f926620e1b5bcc5.tar.gz
ferdium-app-cffaab954338f0062772d38d8f926620e1b5bcc5.tar.zst
ferdium-app-cffaab954338f0062772d38d8f926620e1b5bcc5.zip
Disable Miner on Windows
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ui/Subscription.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/ui/Subscription.js b/src/components/ui/Subscription.js
index 35a1105d2..80ee2d9d2 100644
--- a/src/components/ui/Subscription.js
+++ b/src/components/ui/Subscription.js
@@ -7,6 +7,7 @@ import Form from '../../lib/Form';
7import Radio from '../ui/Radio'; 7import Radio from '../ui/Radio';
8import Button from '../ui/Button'; 8import Button from '../ui/Button';
9import Loader from '../ui/Loader'; 9import Loader from '../ui/Loader';
10import { isWindows } from '../../environment';
10 11
11import { required } from '../../helpers/validation-helpers'; 12import { required } from '../../helpers/validation-helpers';
12 13
@@ -148,14 +149,18 @@ export default class SubscriptionForm extends Component {
148 label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year') 149 label: `€ ${Object.hasOwnProperty.call(this.props.plan, 'year')
149 ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}` 150 ? `${this.props.plan.year.price} / ${intl.formatMessage(messages.typeYearly)}`
150 : 'yearly'}`, 151 : 'yearly'}`,
151 }, {
152 value: 'mining',
153 label: intl.formatMessage(messages.typeMining),
154 }], 152 }],
155 }, 153 },
156 }, 154 },
157 }; 155 };
158 156
157 if (!isWindows) {
158 form.fields.paymentTier.options.push({
159 value: 'mining',
160 label: intl.formatMessage(messages.typeMining),
161 });
162 }
163
159 if (this.props.showSkipOption) { 164 if (this.props.showSkipOption) {
160 form.fields.paymentTier.options.unshift({ 165 form.fields.paymentTier.options.unshift({
161 value: 'skip', 166 value: 'skip',