Skip to content

Commit f7afe1b

Browse files
author
Brian Vaughn
committed
Moved shell fixture into packages/react-devtools-shell
1 parent 183f96f commit f7afe1b

File tree

31 files changed

+105
-12
lines changed

31 files changed

+105
-12
lines changed

fixtures/devtools/shell/app/DeeplyNestedComponents/index.js renamed to packages/react-devtools-shell/app/DeeplyNestedComponents/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ function wrapWithHoc(Component, index) {
66
function HOC() {
77
return <Component />;
88
}
9-
HOC.displayName = `withHoc${index}(${Component.displayName ||
10-
Component.name})`;
9+
10+
// $FlowFixMe
11+
const displayName = Component.displayName || Component.name;
12+
13+
HOC.displayName = `withHoc${index}(${displayName})`;
1114
return HOC;
1215
}
1316

0 commit comments

Comments
 (0)