Sha256: 5fe2bdd37bf05815d3294da2b84738f2d2551c04cc1a5bd5af51c9461bca3aa2
Contents?: true
Size: 965 Bytes
Versions: 53
Compression:
Stored size: 965 Bytes
Contents
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import InsightsSyncSwitcher from '../InsightsSyncSwitcher'; import './insightsSettings.scss'; class InsightsSettings extends Component { componentDidMount() { const { getInsightsSyncSettings } = this.props; getInsightsSyncSettings(); } render() { const { insightsSyncEnabled, setInsightsSyncEnabled } = this.props; return ( <div className="insights_settings"> <h3>{__('Settings')}</h3> <InsightsSyncSwitcher insightsSyncEnabled={insightsSyncEnabled} setInsightsSyncEnabled={setInsightsSyncEnabled} /> </div> ); } } InsightsSettings.propTypes = { insightsSyncEnabled: PropTypes.bool.isRequired, getInsightsSyncSettings: PropTypes.func.isRequired, setInsightsSyncEnabled: PropTypes.func.isRequired, }; export default InsightsSettings;
Version data entries
53 entries across 53 versions & 1 rubygems