zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
b9211357f8
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      src/client/js/components/PageEditor/GridEditModal.jsx

+ 1 - 11
src/client/js/components/PageEditor/GridEditModal.jsx

@@ -1,6 +1,5 @@
 import React from 'react';
 import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
-
 import {
 import {
   Modal, ModalHeader, ModalBody, ModalFooter,
   Modal, ModalHeader, ModalBody, ModalFooter,
 } from 'reactstrap';
 } from 'reactstrap';
@@ -13,7 +12,6 @@ export default class GridEditModal extends React.PureComponent {
     this.state = {
     this.state = {
       show: false,
       show: false,
       gridHtml: '',
       gridHtml: '',
-      handleCheckedType: 'Mobile',
     };
     };
 
 
     this.init = this.init.bind(this);
     this.init = this.init.bind(this);
@@ -55,10 +53,6 @@ export default class GridEditModal extends React.PureComponent {
     this.cancel();
     this.cancel();
   }
   }
 
 
-  handleChecked(value) {
-    this.props.handleCheckedType(value);
-  }
-
 
 
   render() {
   render() {
     return (
     return (
@@ -105,7 +99,7 @@ export default class GridEditModal extends React.PureComponent {
                         className="custom-control-input"
                         className="custom-control-input"
                         name="disSize"
                         name="disSize"
                         value="mobile"
                         value="mobile"
-                        checked={handleChecked === 'Mobile'}
+                        checked
                       />
                       />
                       <label className="custom-control-label" htmlFor="mobile">
                       <label className="custom-control-label" htmlFor="mobile">
                         <i className="pl-2 pr-1 icon-screen-smartphone "></i> Mobile
                         <i className="pl-2 pr-1 icon-screen-smartphone "></i> Mobile
@@ -118,7 +112,6 @@ export default class GridEditModal extends React.PureComponent {
                         className="custom-control-input"
                         className="custom-control-input"
                         name="disSize"
                         name="disSize"
                         value="tablet"
                         value="tablet"
-                        checked={handleChecked === 'tablet'}
                       />
                       />
                       <label className="custom-control-label" htmlFor="tablet">
                       <label className="custom-control-label" htmlFor="tablet">
                         <i className="pl-2 pr-1 icon-screen-tablet"></i> Tablet
                         <i className="pl-2 pr-1 icon-screen-tablet"></i> Tablet
@@ -131,7 +124,6 @@ export default class GridEditModal extends React.PureComponent {
                         className="custom-control-input"
                         className="custom-control-input"
                         name="disSize"
                         name="disSize"
                         value="desktop"
                         value="desktop"
-                        checked={handleChecked === 'desktop'}
                       />
                       />
                       <label className="custom-control-label" htmlFor="desktop">
                       <label className="custom-control-label" htmlFor="desktop">
                         <i className="pl-2 pr-1 icon-screen-desktop"></i> Desktop
                         <i className="pl-2 pr-1 icon-screen-desktop"></i> Desktop
@@ -144,7 +136,6 @@ export default class GridEditModal extends React.PureComponent {
                         className="custom-control-input"
                         className="custom-control-input"
                         name="disSize"
                         name="disSize"
                         value="none"
                         value="none"
-                        checked={handleChecked === 'none'}
                       />
                       />
                       <label className="custom-control-label pl-2" htmlFor="none">None</label>
                       <label className="custom-control-label pl-2" htmlFor="none">None</label>
                     </div>
                     </div>
@@ -185,5 +176,4 @@ export default class GridEditModal extends React.PureComponent {
 
 
 GridEditModal.propTypes = {
 GridEditModal.propTypes = {
   onSave: PropTypes.func,
   onSave: PropTypes.func,
-  handleCheckedType: PropTypes,
 };
 };