Skip to content

Commit f7265ef

Browse files
Merge pull request #78799 from Expensify/vit-displayNames
[NoQA] Fix displayNames in components
2 parents f0f539e + c2a70ca commit f7265ef

File tree

30 files changed

+60
-4
lines changed

30 files changed

+60
-4
lines changed

src/components/Attachments/AttachmentView/AttachmentViewVideo/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ function AttachmentViewVideo({source, isHovered = false, shouldUseSharedVideoEle
3434
);
3535
}
3636

37+
AttachmentViewVideo.displayName = 'AttachmentViewVideo';
38+
3739
export default React.memo(AttachmentViewVideo);

src/components/AvatarCropModal/ImageCropView.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ function ImageCropView({imageUri = '', containerSize = 0, panGesture = Gesture.P
9797
);
9898
}
9999

100+
ImageCropView.displayName = 'ImageCropView';
101+
100102
// React.memo is needed here to prevent styles recompilation
101103
// which sometimes may cause glitches during rerender of the modal
102104
export default React.memo(ImageCropView);

src/components/EmojiPicker/CategoryShortcutButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@ function CategoryShortcutButton({code, icon, onPress}: CategoryShortcutButtonPro
5656
);
5757
}
5858

59+
CategoryShortcutButton.displayName = 'CategoryShortcutButton';
60+
5961
export default React.memo(CategoryShortcutButton);

src/components/EmojiPicker/EmojiPickerMenuItem/index.native.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ function EmojiPickerMenuItem({
5555
);
5656
}
5757

58+
EmojiPickerMenuItem.displayName = 'EmojiPickerMenuItem';
59+
5860
// Significantly speeds up re-renders of the EmojiPickerMenu's FlatList
5961
// by only re-rendering at most two EmojiPickerMenuItems that are highlighted/un-highlighted per user action.
6062
export default React.memo(

src/components/EmojiPicker/EmojiPickerMenuItem/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ function EmojiPickerMenuItem({
8181
);
8282
}
8383

84+
EmojiPickerMenuItem.displayName = 'EmojiPickerMenuItem';
85+
8486
// Significantly speeds up re-renders of the EmojiPickerMenu's FlatList
8587
// by only re-rendering at most two EmojiPickerMenuItems that are highlighted/un-highlighted per user action.
8688
export default React.memo(

src/components/Image/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ function Image({
175175
);
176176
}
177177

178+
Image.displayName = 'Image';
179+
178180
export default React.memo(
179181
Image,
180182
(prevProps: ImageProps, nextProps: ImageProps) => prevProps.source === nextProps.source && prevProps.imageWidthToCalculateHeight === nextProps.imageWidthToCalculateHeight,

src/components/ImageWithLoading.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,6 @@ function ImageWithLoading({
118118
);
119119
}
120120

121+
ImageWithLoading.displayName = 'ImageWithLoading';
122+
121123
export default React.memo(ImageWithLoading);

src/components/ImageWithSizeCalculation.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ function ImageWithSizeCalculation({
9898
);
9999
}
100100

101+
ImageWithSizeCalculation.displayName = 'ImageWithSizeCalculation';
102+
101103
export default React.memo(ImageWithSizeCalculation);

src/components/LHNOptionsList/OptionRowLHN.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,4 +388,6 @@ function OptionRowLHN({
388388
);
389389
}
390390

391+
OptionRowLHN.displayName = 'OptionRowLHN';
392+
391393
export default React.memo(OptionRowLHN);

src/components/LHNOptionsList/OptionRowLHNData.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ function OptionRowLHNData({
127127
);
128128
}
129129

130+
OptionRowLHNData.displayName = 'OptionRowLHNData';
131+
130132
/**
131133
* This component is rendered in a list.
132134
* On scroll we want to avoid that a item re-renders

0 commit comments

Comments
 (0)