mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
Refine the code base for cell edit
This commit is contained in:
parent
7a5b88bcf6
commit
bc67dfcd23
@ -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';
|
||||
|
||||
@ -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) {
|
||||
2
packages/react-bootstrap-table2/src/row.js
vendored
2
packages/react-bootstrap-table2/src/row.js
vendored
@ -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) => {
|
||||
|
||||
@ -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) => {
|
||||
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user