File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/elements/common/api-context Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,8 @@ export interface WithAPIProps {
1414 * Higher-order component that provides API context to the wrapped component
1515 * This HOC is used by many components throughout the codebase
1616 */
17- const withAPIContext = (
18- // eslint-disable-next-line @typescript-eslint/no-explicit-any
19- WrappedComponent : React . ComponentType < any > ,
20- ) => {
17+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18+ const withAPIContext = ( WrappedComponent : React . ComponentType < any > ) => {
2119 // eslint-disable-next-line @typescript-eslint/no-explicit-any
2220 return React . forwardRef < any , any > ( ( props , ref ) => (
2321 < APIContext . Consumer > { api => < WrappedComponent ref = { ref } { ...props } api = { api } /> } </ APIContext . Consumer >
You can’t perform that action at this time.
0 commit comments