Skip to content

Commit

Permalink
feat(ConnectViewport): remove deprecated connectViewportScroll connector
Browse files Browse the repository at this point in the history
  • Loading branch information
garthenweb committed Sep 16, 2018
1 parent 62dc841 commit 0344602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/StickyScrollUp.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -96,4 +96,4 @@ class StickyScrollUp extends React.PureComponent<IProps> {
}
}

export default connectStickyGroup()(connectViewportScroll()(StickyScrollUp));
export default connectStickyGroup()(connectViewport()(StickyScrollUp));
8 changes: 1 addition & 7 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 0344602

Please sign in to comment.