Skip to content

Commit 23cf7fc

Browse files
authored
fix(ouia): don't omit ouiaContext (#3872)
1 parent 34098e9 commit 23cf7fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-core/src/components/withOuia/withOuia.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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} />

0 commit comments

Comments
 (0)