Skip to content

Commit

Permalink
Merge pull request #617 from odogono/require-fix
Browse files Browse the repository at this point in the history
Remove require in favour of import
  • Loading branch information
bvaughn committed Mar 16, 2017
2 parents 68a259a + 4ea9161 commit 3e9ed36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import createCallbackMemoizer from '../utils/createCallbackMemoizer'
import defaultOverscanIndicesGetter, { SCROLL_DIRECTION_BACKWARD, SCROLL_DIRECTION_FORWARD } from './utils/defaultOverscanIndicesGetter'
import updateScrollIndexHelper from './utils/updateScrollIndexHelper'
import defaultCellRangeRenderer from './defaultCellRangeRenderer'
import scrollbarSize from 'dom-helpers/util/scrollbarSize'

/**
* Specifies the number of miliseconds during which to disable pointer events while a scroll is in progress.
Expand Down Expand Up @@ -221,7 +222,7 @@ export default class Grid extends PureComponent {
cellRangeRenderer: defaultCellRangeRenderer,
estimatedColumnSize: 100,
estimatedRowSize: 30,
getScrollbarSize: require('dom-helpers/util/scrollbarSize'),
getScrollbarSize: scrollbarSize,
noContentRenderer: () => null,
onScroll: () => null,
onSectionRendered: () => null,
Expand Down

0 comments on commit 3e9ed36

Please sign in to comment.