diff --git a/examples/StickyScrollUp.tsx b/examples/StickyScrollUp.tsx index 63adfc9..b993ff8 100644 --- a/examples/StickyScrollUp.tsx +++ b/examples/StickyScrollUp.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { ObserveBoundingClientRect, connectViewportScroll } from '../lib/index'; +import { ObserveBoundingClientRect, connectViewport } from '../lib/index'; import { connect as connectStickyGroup } from './StickyGroup'; interface IProps { @@ -96,4 +96,4 @@ class StickyScrollUp extends React.PureComponent { } } -export default connectStickyGroup()(connectViewportScroll()(StickyScrollUp)); +export default connectStickyGroup()(connectViewport()(StickyScrollUp)); diff --git a/lib/index.ts b/lib/index.ts index da662a6..db75345 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,11 +1,5 @@ export { default as ViewportProvider } from './ViewportProvider'; -export { - /** - * @deprecated use connectViewport instead - */ - default as connectViewportScroll, - default as connectViewport, -} from './ConnectViewport'; +export { default as connectViewport } from './ConnectViewport'; export { default as ObserveBoundingClientRect, } from './ObserveBoundingClientRect';