diff --git a/src/core/client/framework/lib/relay/createMutationContainer.tsx b/src/core/client/framework/lib/relay/createMutationContainer.tsx index d0a91e92d..0446e7d17 100644 --- a/src/core/client/framework/lib/relay/createMutationContainer.tsx +++ b/src/core/client/framework/lib/relay/createMutationContainer.tsx @@ -22,10 +22,10 @@ function createMutationContainer( ): InferableComponentEnhancer<{ [P in T]: (input: I) => Promise }> { return compose( withContext(({ relayEnvironment }) => ({ relayEnvironment })), - hoistStatics((WrappedComponent: React.ComponentType) => { + hoistStatics((BaseComponent: React.ComponentType) => { class CreateMutationContainer extends React.Component { public static displayName = wrapDisplayName( - WrappedComponent, + BaseComponent, "createMutationContainer" ); @@ -38,7 +38,7 @@ function createMutationContainer( const inject = { [propName]: this.commit, }; - return ; + return ; } } return CreateMutationContainer as React.ComponentType; diff --git a/src/core/client/framework/lib/relay/withLocalStateContainer.tsx b/src/core/client/framework/lib/relay/withLocalStateContainer.tsx index 9de4180bb..9eaeb0ce8 100644 --- a/src/core/client/framework/lib/relay/withLocalStateContainer.tsx +++ b/src/core/client/framework/lib/relay/withLocalStateContainer.tsx @@ -34,7 +34,7 @@ function withLocalStateContainer( ): InferableComponentEnhancer<{ local: T }> { return compose( withContext(({ relayEnvironment }) => ({ relayEnvironment })), - hoistStatics((WrappedComponent: React.ComponentType) => { + hoistStatics((BaseComponent: React.ComponentType) => { class LocalStateContainer extends React.Component { constructor(props: Props) { super(props); @@ -65,7 +65,7 @@ function withLocalStateContainer( public render() { const { relayEnvironment: _, ...rest } = this.props; - return ; + return ; } } return LocalStateContainer as React.ComponentType; diff --git a/src/core/client/ui/hocs/withKeyboardFocus.tsx b/src/core/client/ui/hocs/withKeyboardFocus.tsx index a3fe33078..dff7d0e1e 100644 --- a/src/core/client/ui/hocs/withKeyboardFocus.tsx +++ b/src/core/client/ui/hocs/withKeyboardFocus.tsx @@ -15,7 +15,7 @@ interface InjectedProps { * or touch. */ const withKeyboardFocus = hoistStatics( - (WrappedComponent: React.ComponentType) => { + (BaseComponent: React.ComponentType) => { class WithKeyboardFocus extends React.Component { public state = { keyboardFocus: false, @@ -48,7 +48,7 @@ const withKeyboardFocus = hoistStatics( public render() { return ( - ( // TODO: workaround, add bug link. export default withKeyboardFocus as

>( - WrappedComponent: React.ComponentType

+ BaseComponent: React.ComponentType

) => React.ComponentType

; diff --git a/src/core/client/ui/hocs/withMouseHover.tsx b/src/core/client/ui/hocs/withMouseHover.tsx index e181f7bab..8172012f0 100644 --- a/src/core/client/ui/hocs/withMouseHover.tsx +++ b/src/core/client/ui/hocs/withMouseHover.tsx @@ -15,7 +15,7 @@ interface InjectedProps { * or touch. */ const withMouseHover = hoistStatics( - (WrappedComponent: React.ComponentType) => { + (BaseComponent: React.ComponentType) => { class WithMouseHover extends React.Component { public state = { mouseHover: false, @@ -48,7 +48,7 @@ const withMouseHover = hoistStatics( public render() { return ( - ( // TODO: workaround, add bug link. export default withMouseHover as

>( - WrappedComponent: React.ComponentType

+ BaseComponent: React.ComponentType

) => React.ComponentType

;