File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-core/src/components/withOuia Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ export interface OuiaContextProps {
1717/**
1818 * @param { React.ComponentClass | React.FunctionComponent } WrappedComponent - React component
1919 */
20- export function withOuiaContext < P extends { ouiaContext ?: OuiaContextProps } , R = Omit < P , 'ouiaContext' > > (
20+ export function withOuiaContext < P extends { ouiaContext ?: OuiaContextProps } > (
2121 WrappedComponent : React . ComponentClass < P > | React . FunctionComponent < P >
22- ) : React . FunctionComponent < R > {
22+ ) : React . FunctionComponent < P > {
2323 /* eslint-disable react/display-name */
24- return ( props : R ) => (
24+ return ( props : P ) => (
2525 < OuiaContext . Consumer >
2626 { ( value : OuiaContextProps ) => (
2727 < ComponentWithOuia consumerContext = { value } component = { WrappedComponent } componentProps = { props } />
You can’t perform that action at this time.
0 commit comments