diff --git a/.prettierrc.js b/.prettierrc.js index 2b54074..3f714ac 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,7 +1,4 @@ module.exports = { - arrowParens: 'avoid', - bracketSameLine: true, - bracketSpacing: false, singleQuote: true, - trailingComma: 'all', -}; + semi: false, +} diff --git a/components/common/app-switch.js b/components/common/app-switch.js index 3c100fe..d45758f 100644 --- a/components/common/app-switch.js +++ b/components/common/app-switch.js @@ -4,9 +4,10 @@ import PropTypes from 'prop-types' import AppText from './app-text' -import { Containers } from '../../styles' +import { Colors, Containers } from '../../styles' -const AppSwitch = ({ onToggle, text, value, trackColor, disabled }) => { +const AppSwitch = ({ onToggle, text, value, disabled }) => { + const trackColor = { true: Colors.turquoiseDark } return ( @@ -27,7 +28,6 @@ AppSwitch.propTypes = { onToggle: PropTypes.func.isRequired, text: PropTypes.string, value: PropTypes.bool, - trackColor: PropTypes.string, disabled: PropTypes.bool, } diff --git a/components/settings/customization/index.js b/components/settings/customization/index.js index 7fa9dd7..e2f4f9e 100644 --- a/components/settings/customization/index.js +++ b/components/settings/customization/index.js @@ -30,7 +30,6 @@ import { periodPredictionObservable, useCervixAsSecondarySymptomObservable, } from '../../../local-storage' -import { Colors } from '../../../styles' import labels from '../../../i18n/en/settings' import { SYMPTOMS } from '../../../config' @@ -217,31 +216,26 @@ const Settings = () => { onToggle={sexTrackingCategoryToggle} text={SYMPTOMS[4]} value={isSexTrackingCategoryEnabled} - trackColor={{ true: Colors.turquoiseDark }} /> @@ -250,7 +244,6 @@ const Settings = () => { onToggle={toggleSwitch} text={'If turned on ...'} value={isEnabled} - trackColor={{ true: Colors.turquoiseDark }} /> @@ -292,7 +285,6 @@ const Settings = () => { onToggle={onPeriodPredictionToggle} text={periodPredictionText} value={isPeriodPredictionEnabled} - trackColor={{ true: Colors.turquoiseDark }} />