mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
9f836f5433
1) Immediately return this expression instead of assigning it to the temporary variable. 2) Extract this nested ternary operation into an independent statement. 3) Expected a `for-of` loop instead of a `for` loop with this simple iteration.
10 lines
233 B
JavaScript
10 lines
233 B
JavaScript
import React from 'react';
|
|
import Theme from 'sources/Theme';
|
|
|
|
export function withTheme(WrappedComp) {
|
|
// eslint-disable-next-line react/display-name
|
|
return (props)=>{
|
|
return <Theme><WrappedComp {...props}/></Theme>;
|
|
};
|
|
}
|