import React from 'react'; import { Modal, ModalHeader, ModalBody, ModalFooter, } from 'reactstrap'; export default class GridEditModal extends React.PureComponent { constructor(props) { super(props); this.state = { show: false, }; this.show = this.show.bind(this); this.hide = this.hide.bind(this); this.cancel = this.cancel.bind(this); } show() { this.setState({ show: true }); } hide() { this.setState({ show: false }); } cancel() { this.hide(); } showBgCols() { const cols = []; for (let i = 0; i < 12; i++) { // [bg-light:TODO support dark mode by GW-3037] cols.push(
t
); } return cols; } showEditableCols() { const cols = []; for (let i = 0; i < 12; i++) { // [bg-light:TODO support dark mode by GW-3037] cols.push(
); } return cols; } render() { return ( Edit Grid
Phone
Tablet
Desktop
Large Desktop
{this.showBgCols()}
{/*
{this.showBgCols()}
*/} {/*
{this.showBgCols()}
*/}
{/*
*/} {/*
*/}
{/*
Phone
Tablet
Desktop
Large Desktop
{/* [bg-dark:TODO support dark mode by GW-3037] */} {/* [Just an example to check if bg-cols and editable-cols fit] */} {/*
*/}
); } }