|
@@ -13,7 +13,7 @@ export default class GridEditModal extends React.Component {
|
|
|
|
|
|
|
|
this.state = {
|
|
this.state = {
|
|
|
colsRatios: [6, 6],
|
|
colsRatios: [6, 6],
|
|
|
- responsiveSize: BootstrapGrid.ResponsiveSize.XS_SIZE,
|
|
|
|
|
|
|
+ responsiveSize: BootstrapGrid.ResponsiveSize.XS_SIZE[0],
|
|
|
show: false,
|
|
show: false,
|
|
|
gridHtml: '',
|
|
gridHtml: '',
|
|
|
};
|
|
};
|
|
@@ -78,11 +78,11 @@ export default class GridEditModal extends React.Component {
|
|
|
|
|
|
|
|
renderSelectedBreakPoint() {
|
|
renderSelectedBreakPoint() {
|
|
|
const resSizes = BootstrapGrid.ResponsiveSize;
|
|
const resSizes = BootstrapGrid.ResponsiveSize;
|
|
|
- const output = Object.values(resSizes).map((resSize) => {
|
|
|
|
|
- return (this.state.responsiveSize === resSize
|
|
|
|
|
|
|
+ const output = Object.values(resSizes).map((resSizes) => {
|
|
|
|
|
+ return (this.state.responsiveSize === resSizes[0]
|
|
|
&& (
|
|
&& (
|
|
|
<span>
|
|
<span>
|
|
|
- <i className={`pr-1 icon-screen-${resSize}`}> {resSize}</i>
|
|
|
|
|
|
|
+ <i className={`pr-1 icon-screen-${resSizes[1]}`}> {resSizes[1]}</i>
|
|
|
</span>
|
|
</span>
|
|
|
)
|
|
)
|
|
|
);
|
|
);
|
|
@@ -123,8 +123,8 @@ export default class GridEditModal extends React.Component {
|
|
|
const resSizes = BootstrapGrid.ResponsiveSize;
|
|
const resSizes = BootstrapGrid.ResponsiveSize;
|
|
|
const output = Object.values(resSizes).map((resSize) => {
|
|
const output = Object.values(resSizes).map((resSize) => {
|
|
|
return (
|
|
return (
|
|
|
- <button className="dropdown-item" type="button" onClick={() => { this.checkResposiveSize(resSize) }}>
|
|
|
|
|
- <i className={`pl-2 pr-1 icon-screen-${resSize}`}></i> {resSize}
|
|
|
|
|
|
|
+ <button className="dropdown-item" type="button" onClick={() => { this.checkResposiveSize(resSize[0]) }}>
|
|
|
|
|
+ <i className={`pl-2 pr-1 icon-screen-${resSize[1]}`}></i> {resSize[1]}
|
|
|
</button>
|
|
</button>
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|