Skip to content

Commit 22081e7

Browse files
committed
fix allowSyntheticDefaultImports
1 parent fae9681 commit 22081e7

16 files changed

+22
-22
lines changed

src/BaseTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import PropTypes from 'prop-types';
1+
import * as React from 'react';
2+
import * as PropTypes from 'prop-types';
33
import { connect } from 'mini-store';
44
import classNames from 'classnames';
55
import ColGroup from './ColGroup';

src/BodyTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import PropTypes from 'prop-types';
1+
import * as React from 'react';
2+
import * as PropTypes from 'prop-types';
33
import { measureScrollbar } from './utils';
44
import BaseTable from './BaseTable';
55
import { FixedType, ColumnType, GetRowKey, Expander } from './interface';

src/ColGroup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import PropTypes from 'prop-types';
1+
import * as React from 'react';
2+
import * as PropTypes from 'prop-types';
33
import { INTERNAL_COL_DEFINE } from './utils';
44
import { FixedType, ColumnType, InternalColumnType } from './interface';
55

src/Column.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { ColumnType } from './interface';
33

44
export type ColumnProps = ColumnType;

src/ColumnGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22

33
export interface ColumnGroupProps {
44
title?: React.ReactNode;

src/ColumnManager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-underscore-dangle */
2-
import React from 'react';
2+
import * as React from 'react';
33
import { ColumnType, Cell } from './interface';
44
import ColumnGroup from './ColumnGroup';
55

src/ExpandIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import shallowequal from 'shallowequal';
33
import { IconExpandEventHandler } from './interface';
44

src/ExpandableRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { connect } from 'mini-store';
33
import ExpandIcon from './ExpandIcon';
44
import {

src/ExpandableTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { connect } from 'mini-store';
33
import { polyfill } from 'react-lifecycles-compat';
44
import shallowEqual from 'shallowequal';

src/HeadTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import PropTypes from 'prop-types';
1+
import * as React from 'react';
2+
import * as PropTypes from 'prop-types';
33
import classNames from 'classnames';
44
import { measureScrollbar } from './utils';
55
import BaseTable from './BaseTable';

0 commit comments

Comments
 (0)