We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a830d3 commit dfe553eCopy full SHA for dfe553e
1 file changed
packages/react-devtools-shared/src/devtools/views/Components/HocBadges.js
@@ -23,20 +23,12 @@ type Props = {|
23
export default function HocBadges({element}: Props) {
24
const {hocDisplayNames, type} = ((element: any): Element);
25
26
- let typeBadge = null;
27
- if (type === ElementTypeMemo) {
28
- typeBadge = 'Memo';
29
- } else if (type === ElementTypeForwardRef) {
30
- typeBadge = 'ForwardRef';
31
- }
32
-
33
- if (hocDisplayNames === null && typeBadge === null) {
+ if (hocDisplayNames === null) {
34
return null;
35
}
36
37
return (
38
<div className={styles.HocBadges}>
39
- {typeBadge !== null && <div className={styles.Badge}>{typeBadge}</div>}
40
{hocDisplayNames !== null &&
41
hocDisplayNames.map(hocDisplayName => (
42
<div key={hocDisplayName} className={styles.Badge}>
0 commit comments