Skip to content
Snippets Groups Projects
Select Git revision
  • 26fa853d4182c0d9ab233a7b0765477793fddea7
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

mysql.lib.php

Blame
  • Checkbox.js 880 B
    /* eslint-disable no-unused-vars */
    import React, { Component } from 'react';
    import cx from 'classnames';
    import uncheckImage from 'assets/images/checkbox-1.svg';
    import checkImage from 'assets/images/checkbox-2.svg';
    
    class Checkbox extends Component {
    
      render() {
        let {
          input,
          label,
          type,
          meta: { touched, error, warning },
          disabled
        } = this.props;
    
        return (
          <label className={cx("checkbox", {
            checked: input.checked,
            disabled: disabled
          })}>
            <span className="icons">
              <img className="first-icon" src={uncheckImage} width={17} alt="" />
              <img className="second-icon" src={checkImage} width={17} alt="" />
            </span>
            <input {...input} type="checkbox" data-toggle="checkbox" disabled={disabled} />
            {label}
          </label>
        );
      }
    }
    
    export default Checkbox;