import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; class CustomizeCrowiLayout extends React.Component { render() { return (

this.props.onChangeLayout('crowi')} />

Separated Functions

); } } CustomizeCrowiLayout.propTypes = { t: PropTypes.func.isRequired, // i18next currentLayout: PropTypes.string.isRequired, onChangeLayout: PropTypes.func.isRequired, }; export default withTranslation()(CustomizeCrowiLayout);