mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[react devtools][easy] Fix code highlighting in VSCode (#25155)
* Minor change that fixes code highlighting in VSCode in a particular file
This commit is contained in:
+2
-1
@@ -108,8 +108,9 @@ export function getWrappedDisplayName(
|
||||
wrapperName: string,
|
||||
fallbackName?: string,
|
||||
): string {
|
||||
const displayName = (outerType: any).displayName;
|
||||
return (
|
||||
(outerType: any).displayName ||
|
||||
displayName ||
|
||||
`${wrapperName}(${getDisplayName(innerType, fallbackName)})`
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user