Refine the code base for cell edit

This commit is contained in:
Allen 2017-10-17 03:42:26 -05:00 committed by GitHub
parent 7a5b88bcf6
commit bc67dfcd23
10 changed files with 14 additions and 14 deletions

View File

@ -5,8 +5,8 @@ import React, { Component } from 'react';
import cs from 'classnames';
import PropTypes from 'prop-types';
import _ from './utils';
import Const from './const';
import _ from '../utils';
import Const from '../const';
import TextEditor from './text-editor';
import EditorIndicator from './editor-indicator';

View File

@ -2,7 +2,7 @@
/* eslint react/prop-types: 0 */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from './utils';
import _ from '../utils';
class CellEditWrapper extends Component {
constructor(props) {

View File

@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import _ from './utils';
import Cell from './cell';
import SelectionCell from './row-selection/selection-cell';
import EditingCell from './editing-cell';
import EditingCell from './cell-edit/editing-cell';
import Const from './const';
const Row = (props) => {

View File

@ -4,7 +4,7 @@
/* eslint react/prop-types: 0 */
import React, { Component } from 'react';
import Store from './store/base';
import CellEditWrapper from './cell-edit-wrapper';
import CellEditWrapper from './cell-edit/wrapper';
import _ from './utils';
const withStateful = (Base) => {

View File

@ -3,10 +3,10 @@ import React from 'react';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { TableRowWrapper } from './test-helpers/table-wrapper';
import EditingCell from '../src/editing-cell';
import TextEditor from '../src/text-editor';
import EditorIndicator from '../src/editor-indicator';
import { TableRowWrapper } from '../test-helpers/table-wrapper';
import EditingCell from '../../src/cell-edit/editing-cell';
import TextEditor from '../../src/cell-edit/text-editor';
import EditorIndicator from '../../src/cell-edit/editor-indicator';
describe('EditingCell', () => {
let wrapper;

View File

@ -1,7 +1,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import TextEditor from '../src/text-editor';
import TextEditor from '../../src/cell-edit/text-editor';
describe('TextEditor', () => {
let wrapper;

View File

@ -2,9 +2,9 @@ import React from 'react';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import Store from '../src/store/base';
import BootstrapTable from '../src/bootstrap-table';
import CellEditWrapper from '../src/cell-edit-wrapper';
import Store from '../../src/store/base';
import BootstrapTable from '../../src/bootstrap-table';
import CellEditWrapper from '../../src/cell-edit/wrapper';
describe('CellEditWrapper', () => {
let wrapper;

View File

@ -5,7 +5,7 @@ import { shallow } from 'enzyme';
import Cell from '../src/cell';
import Row from '../src/row';
import Const from '../src/const';
import EditingCell from '../src/editing-cell';
import EditingCell from '../src/cell-edit/editing-cell';
import SelectionCell from '../src//row-selection/selection-cell';
import mockBodyResolvedProps from '../test/mock-data/body-resolved-props';