import PropTypes from 'prop-types'; import React from 'react'; import { Row, Col, ControlLabel } from 'react-bootstrap'; import TB from '../Toggle-Button'; const propTypes = { currentTheme: PropTypes.string.isRequired, toggleNightMode: PropTypes.func.isRequired }; export default function ThemeSettings({ currentTheme, toggleNightMode }) { return (

Night Mode

toggleNightMode(currentTheme) } value={ currentTheme === 'night' } />
); } ThemeSettings.displayName = 'ThemeSettings'; ThemeSettings.propTypes = propTypes;