|
@@ -5,20 +5,21 @@ import { withTranslation } from 'react-i18next';
|
|
|
class CustomizeLayoutOption extends React.Component {
|
|
class CustomizeLayoutOption extends React.Component {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
|
|
+ const { layoutType } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="col-sm-4">
|
|
<div className="col-sm-4">
|
|
|
<h4>
|
|
<h4>
|
|
|
<div className="radio radio-primary">
|
|
<div className="radio radio-primary">
|
|
|
- <input type="radio" id={`radio-layout-${this.props.layoutType}`} checked={this.props.isSelected} onChange={this.props.onSelected} />
|
|
|
|
|
- <label htmlFor={`radio-layout-${this.props.layoutType}`}>
|
|
|
|
|
|
|
+ <input type="radio" id={`radio-layout-${layoutType}`} checked={this.props.isSelected} onChange={this.props.onSelected} />
|
|
|
|
|
+ <label htmlFor={`radio-layout-${layoutType}`}>
|
|
|
{/* eslint-disable-next-line react/no-danger */}
|
|
{/* eslint-disable-next-line react/no-danger */}
|
|
|
<span dangerouslySetInnerHTML={{ __html: this.props.labelHtml }} />
|
|
<span dangerouslySetInnerHTML={{ __html: this.props.labelHtml }} />
|
|
|
</label>
|
|
</label>
|
|
|
</div>
|
|
</div>
|
|
|
</h4>
|
|
</h4>
|
|
|
- <a href={`/images/admin/customize/layout-${this.props.layoutType}.gif`} className="ss-container">
|
|
|
|
|
- <img src={`/images/admin/customize/layout-${this.props.layoutType}-thumb.gif`} width="240px" />
|
|
|
|
|
|
|
+ <a href={`/images/admin/customize/layout-${layoutType}.gif`} className="ss-container">
|
|
|
|
|
+ <img src={`/images/admin/customize/layout-${layoutType}-thumb.gif`} width="240px" />
|
|
|
</a>
|
|
</a>
|
|
|
{/* render layout description */}
|
|
{/* render layout description */}
|
|
|
{this.props.children}
|
|
{this.props.children}
|