|
@ -2,7 +2,8 @@ |
|
|
|
|
|
|
|
|
import React, { PureComponent } from 'react' |
|
|
import React, { PureComponent } from 'react' |
|
|
import styled from 'styled-components' |
|
|
import styled from 'styled-components' |
|
|
|
|
|
import { connect } from 'react-redux' |
|
|
|
|
|
import { saveSettings } from 'actions/settings' |
|
|
import Box from 'components/base/Box' |
|
|
import Box from 'components/base/Box' |
|
|
import CheckBox from 'components/base/CheckBox' |
|
|
import CheckBox from 'components/base/CheckBox' |
|
|
import { Title, Description } from '../helperComponents' |
|
|
import { Title, Description } from '../helperComponents' |
|
@ -10,6 +11,8 @@ import OnboardingFooter from '../OnboardingFooter' |
|
|
|
|
|
|
|
|
import type { StepProps } from '..' |
|
|
import type { StepProps } from '..' |
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { saveSettings } |
|
|
|
|
|
|
|
|
type State = { |
|
|
type State = { |
|
|
analyticsToggle: boolean, |
|
|
analyticsToggle: boolean, |
|
|
termsConditionsToggle: boolean, |
|
|
termsConditionsToggle: boolean, |
|
@ -17,9 +20,9 @@ type State = { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const INITIAL_STATE = { |
|
|
const INITIAL_STATE = { |
|
|
analyticsToggle: false, |
|
|
analyticsToggle: true, |
|
|
termsConditionsToggle: false, |
|
|
termsConditionsToggle: false, |
|
|
sentryLogsToggle: false, |
|
|
sentryLogsToggle: true, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class Analytics extends PureComponent<StepProps, State> { |
|
|
class Analytics extends PureComponent<StepProps, State> { |
|
@ -100,7 +103,10 @@ class Analytics extends PureComponent<StepProps, State> { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export default Analytics |
|
|
export default connect( |
|
|
|
|
|
null, |
|
|
|
|
|
mapDispatchToProps, |
|
|
|
|
|
)(Analytics) |
|
|
|
|
|
|
|
|
export const AnalyticsText = styled(Box).attrs({ |
|
|
export const AnalyticsText = styled(Box).attrs({ |
|
|
ff: 'Open Sans|Regular', |
|
|
ff: 'Open Sans|Regular', |
|
|