Skip to content

Commit 8e93147

Browse files
authored
Update withViewport.tsx
1 parent 29575ca commit 8e93147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/withViewport.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import { Sizes } from './interfaces/sizes';
77

88
export function withViewport(options?: Options) {
99
return <T,>(WrappedComponent: React.ComponentType<T & Sizes>) => (
10-
props: T
11-
) => <WrappedComponent {...props} {...useViewport(options)} />;
10+
props: Omit<T, keyof ReturnType<typeof useViewport>>
11+
) => <WrappedComponent {...props as T} {...useViewport(options)} />;
1212
}

0 commit comments

Comments
 (0)