From 24880222f0de764ea3bd66b9986f535970046647 Mon Sep 17 00:00:00 2001 From: NastiaS Date: Mon, 28 May 2018 16:47:28 +0200 Subject: [PATCH] adjustments --- src/components/Onboarding/steps/Analytics.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/Onboarding/steps/Analytics.js b/src/components/Onboarding/steps/Analytics.js index 9ebf8a24..5eeb2b46 100644 --- a/src/components/Onboarding/steps/Analytics.js +++ b/src/components/Onboarding/steps/Analytics.js @@ -24,28 +24,19 @@ class Analytics extends PureComponent { termsConditionsToggle: false, } - handleAnalyticsToggle = isChecked => { - console.log('what is isChecked?: ', isChecked) - // if (isChecked) { + handleAnalyticsToggle = (isChecked: boolean) => { this.setState({ analyticsToggle: !this.state.analyticsToggle }) this.props.saveSettings({ shareAnalytics: isChecked, }) - // } else { - // this.props.saveSettings({ - // shareAnalytics: false, - // }) - // } } - handleTermsToggle = isChecked => { + handleTermsToggle = () => { this.setState({ termsConditionsToggle: !this.state.termsConditionsToggle }) } render() { - const { nextStep, prevStep, t, saveSettings } = this.props - console.log('what is saveSettings!!??: ', saveSettings) + const { nextStep, prevStep, t } = this.props const { analyticsToggle, termsConditionsToggle } = this.state - console.log('what is analyticsToggle: ', analyticsToggle) return (