Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed May 14, 2017
2 parents fbc7e80 + 2bc8fa5 commit b6d598d
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 45 deletions.
16 changes: 8 additions & 8 deletions src/Reactables.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import Main from './components/Main.js'
import Tools from './components/Tools.js'
import Editor from './components/Editor.js'
import Pagination from './components/Pagination.js'
import styles from './css/styles.css'
import React, { PropTypes } from 'react';
import Main from './components/Main.js';
import Tools from './components/Tools.js';
import Editor from './components/Editor.js';
import Pagination from './components/Pagination.js';
import styles from './css/styles.css';
import { DataException } from './components/Exceptions';

var CommonConstants = require('./components/CommonConstants');
Expand Down Expand Up @@ -410,8 +410,8 @@ class Reactables extends Main {
}

Reactables.propTypes = {
editor: React.PropTypes.object,
settings: React.PropTypes.object.isRequired
editor: PropTypes.object,
settings: PropTypes.object.isRequired
}

export default Reactables
8 changes: 4 additions & 4 deletions src/components/Button.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { PropTypes } from 'react'
import styles from '../css/styles.css'
import editor from '../css/editor.css'
import React, { Component, PropTypes } from 'react';
import styles from '../css/styles.css';
import editor from '../css/editor.css';
import classNames from 'classnames/bind';

var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');

class Button extends React.Component {
class Button extends Component {
constructor(props) {
super(props);
this.onClick = this.onClick.bind(this);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Column.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PropTypes } from 'react'
import React, { Component, PropTypes } from 'react';

class Column extends React.Component {
class Column extends Component {
shouldComponentUpdate(nextProps) {
const { gteRowId, count, selectedRows, dataIndex } = this.props;
return gteRowId !== nextProps.gteRowId
Expand Down
6 changes: 3 additions & 3 deletions src/components/Editor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {EditorException} from './Exceptions';
import React, { Component } from 'react';
import { EditorException } from './Exceptions';
import editorStyles from '../css/editor.css';
import classNames from 'classnames/bind';
import superagent from 'superagent';
Expand All @@ -8,7 +8,7 @@ var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class Editor extends React.Component {
class Editor extends Component {
constructor(props)
{
super(props);
Expand Down
6 changes: 3 additions & 3 deletions src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import React, { Component } from 'react';
import classNames from 'classnames/bind';
import styles from '../css/styles.css'
import styles from '../css/styles.css';

var CommonConstants = require('./CommonConstants');

class Header extends React.Component {
class Header extends Component {

constructor(props)
{
Expand Down
10 changes: 5 additions & 5 deletions src/components/Main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react'
import ReactDOM from 'react-dom'
import Row from './Row.js'
import Column from './Column.js'
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Row from './Row.js';
import Column from './Column.js';

var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class Main extends React.Component {
class Main extends Component {

constructor(props)
{
Expand Down
6 changes: 3 additions & 3 deletions src/components/PagesSelector.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { PropTypes } from 'react'
import styles from '../css/styles.css'
import React, { Component, PropTypes } from 'react';
import styles from '../css/styles.css';

var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class PagesSelector extends React.Component {
class PagesSelector extends Component {
shouldComponentUpdate(nextProps) {
return this.props.perPageRows !== nextProps.perPageRows
|| this.props.perPage !== nextProps.perPage;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Pagination.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { PropTypes } from 'react'
import React, { Component, PropTypes } from 'react';
import classNames from 'classnames/bind';
import styles from '../css/styles.css'
import styles from '../css/styles.css';

var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class Pagination extends React.Component {
class Pagination extends Component {
shouldComponentUpdate(nextProps)
{
return this.props.countRows !== nextProps.countRows
Expand Down
8 changes: 4 additions & 4 deletions src/components/Row.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { PropTypes } from 'react'
import styles from '../css/styles.css'
import classNames from 'classnames/bind'
import React, { Component, PropTypes } from 'react';
import styles from '../css/styles.css';
import classNames from 'classnames/bind';

class Row extends React.Component {
class Row extends Component {
shouldComponentUpdate(nextProps) {
const { gteRowId, count, selectedRows, minRow, maxRow } = this.props;
return gteRowId !== nextProps.gteRowId
Expand Down
8 changes: 4 additions & 4 deletions src/components/Search.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import styles from '../css/styles.css'
import editor from '../css/editor.css'
import React, { Component } from 'react';
import styles from '../css/styles.css';
import editor from '../css/editor.css';

var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class Search extends React.Component {
class Search extends Component {
shouldComponentUpdate(nextProps) {
return this.props.search !== nextProps.search;
}
Expand Down
12 changes: 6 additions & 6 deletions src/components/Tools.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react'
import Button from './Button.js'
import PagesSelector from './PagesSelector.js'
import Search from './Search.js'
import styles from '../css/styles.css'
import React, { Component } from 'react';
import Button from './Button.js';
import PagesSelector from './PagesSelector.js';
import Search from './Search.js';
import styles from '../css/styles.css';

var CommonConstants = require('./CommonConstants');
var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class Tools extends React.Component {
class Tools extends Component {
getPagesSelection()
{
const {
Expand Down

0 comments on commit b6d598d

Please sign in to comment.