-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add createXComponent stub for support in Grizzly (#2319)
- Just stub it out so deephaven.ui v0.22 works in Grizzly - Prerequisite for DH-18058
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
|
||
/** | ||
* Stub of a helper function to wrap a component with a replacement component. In this case though, it will just return the original component. | ||
* | ||
* @param Component The component to wrap | ||
* @returns The wrapped component | ||
*/ | ||
export function createXComponent<P extends Record<string, unknown>>( | ||
Component: React.ComponentType<P> | ||
): React.ComponentType<P> { | ||
return Component; | ||
} | ||
|
||
export default createXComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters