Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@ function CarouselButtons({page, attachments, shouldShowArrows, onBack, onForward

CarouselButtons.propTypes = propTypes;
CarouselButtons.defaultProps = defaultProps;
CarouselButtons.displayName = 'CarouselButtons';

export default CarouselButtons;
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,6 @@ function CarouselItem({item, isFocused, onPress}) {

CarouselItem.propTypes = propTypes;
CarouselItem.defaultProps = defaultProps;
CarouselItem.displayName = 'CarouselItem';

export default CarouselItem;
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ function AttachmentCarouselPage({source, isAuthTokenRequired, isActive: initialI
</>
);
}

AttachmentCarouselPage.propTypes = pagePropTypes;
AttachmentCarouselPage.defaultProps = defaultProps;
AttachmentCarouselPage.displayName = 'AttachmentCarouselPage';

export default AttachmentCarouselPage;
Original file line number Diff line number Diff line change
Expand Up @@ -574,5 +574,6 @@ function ImageTransformer({imageWidth, imageHeight, imageScaleX, imageScaleY, sc
}
ImageTransformer.propTypes = imageTransformerPropTypes;
ImageTransformer.defaultProps = imageTransformerDefaultProps;
ImageTransformer.displayName = 'ImageTransformer';

export default ImageTransformer;
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable es/no-optional-chaining */
import PropTypes from 'prop-types';
import React from 'react';
import {StyleSheet} from 'react-native';
Expand All @@ -19,6 +18,8 @@ function ImageWrapper({children}) {
</Animated.View>
);
}

ImageWrapper.propTypes = imageWrapperPropTypes;
ImageWrapper.displayName = 'ImageWrapper';

export default ImageWrapper;
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable es/no-optional-chaining */
import PropTypes from 'prop-types';
import React, {useImperativeHandle, useMemo, useRef, useState} from 'react';
import {View} from 'react-native';
Expand Down Expand Up @@ -168,8 +167,10 @@ function AttachmentCarouselPager({
</GestureHandlerRootView>
);
}

AttachmentCarouselPager.propTypes = pagerPropTypes;
AttachmentCarouselPager.defaultProps = pagerDefaultProps;
AttachmentCarouselPager.displayName = 'AttachmentCarouselPager';

const AttachmentCarouselPagerWithRef = React.forwardRef((props, ref) => (
<AttachmentCarouselPager
Expand Down
2 changes: 2 additions & 0 deletions src/components/Attachments/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ function AttachmentCarousel({report, reportActions, source, onNavigate, setDownl
</View>
);
}

AttachmentCarousel.propTypes = propTypes;
AttachmentCarousel.defaultProps = defaultProps;
AttachmentCarousel.displayName = 'AttachmentCarousel';

export default compose(
withOnyx({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ function AttachmentCarousel({report, reportActions, source, onNavigate, onClose,
}
AttachmentCarousel.propTypes = propTypes;
AttachmentCarousel.defaultProps = defaultProps;
AttachmentCarousel.displayName = 'AttachmentCarousel';

export default compose(
withOnyx({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ function AttachmentViewImage({source, file, isAuthTokenRequired, loadComplete, o

AttachmentViewImage.propTypes = propTypes;
AttachmentViewImage.defaultProps = attachmentViewImageDefaultProps;
AttachmentViewImage.displayName = 'AttachmentViewImage';

export default compose(memo, withLocalize)(AttachmentViewImage);
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ function AttachmentViewImage({source, file, isAuthTokenRequired, isFocused, isUs

AttachmentViewImage.propTypes = propTypes;
AttachmentViewImage.defaultProps = attachmentViewImageDefaultProps;
AttachmentViewImage.displayName = 'AttachmentViewImage';

export default compose(memo, withLocalize)(AttachmentViewImage);
3 changes: 3 additions & 0 deletions src/components/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ function Avatar(props) {
</View>
);
}

Avatar.defaultProps = defaultProps;
Avatar.propTypes = propTypes;
Avatar.displayName = 'Avatar';

export default Avatar;
1 change: 1 addition & 0 deletions src/components/Composer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ function Composer({

Composer.propTypes = propTypes;
Composer.defaultProps = defaultProps;
Composer.displayName = 'Composer';

const ComposerWithRef = React.forwardRef((props, ref) => (
<Composer
Expand Down
1 change: 1 addition & 0 deletions src/components/InvertedFlatList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ InvertedFlatList.defaultProps = {
contentContainerStyle: {},
onScroll: () => {},
};
InvertedFlatList.displayName = 'InvertedFlatList';

const InvertedFlatListWithRef = forwardRef((props, ref) => (
<InvertedFlatList
Expand Down
1 change: 1 addition & 0 deletions src/components/LHNOptionsList/LHNOptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,6 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio

LHNOptionsList.propTypes = propTypes;
LHNOptionsList.defaultProps = defaultProps;
LHNOptionsList.displayName = 'LHNOptionsList';

export default LHNOptionsList;
1 change: 1 addition & 0 deletions src/components/MagicCodeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ function MagicCodeInput(props) {

MagicCodeInput.propTypes = propTypes;
MagicCodeInput.defaultProps = defaultProps;
MagicCodeInput.displayName = 'MagicCodeInput';

const MagicCodeInputWithRef = forwardRef((props, ref) => (
<MagicCodeInput
Expand Down
2 changes: 2 additions & 0 deletions src/components/MapView/Direction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ function Direction({coordinates}: DirectionProps) {
);
}

Direction.displayName = 'Direction';

export default Direction;
2 changes: 2 additions & 0 deletions src/components/MapView/Direction.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ function Direction({coordinates}: DirectionProps) {
);
}

Direction.displayName = 'Direction';

export default Direction;
2 changes: 2 additions & 0 deletions src/components/MapView/PendingMapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ function PendingMapView({title = '', subtitle = '', style}: PendingMapViewProps)
);
}

PendingMapView.displayName = 'PendingMapView';

export default PendingMapView;
1 change: 1 addition & 0 deletions src/components/MoneyRequestConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ function MoneyRequestConfirmationList(props) {

MoneyRequestConfirmationList.propTypes = propTypes;
MoneyRequestConfirmationList.defaultProps = defaultProps;
MoneyRequestConfirmationList.displayName = 'MoneyRequestConfirmationList';

export default compose(
withCurrentUserPersonalDetails,
Expand Down
1 change: 1 addition & 0 deletions src/components/NewDatePicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ function NewDatePicker({containerStyles, defaultValue, disabled, errorText, inpu

NewDatePicker.propTypes = propTypes;
NewDatePicker.defaultProps = datePickerDefaultProps;
NewDatePicker.displayName = 'NewDatePicker';

export default withLocalize(NewDatePicker);
1 change: 1 addition & 0 deletions src/components/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ function OptionRow(props) {

OptionRow.propTypes = propTypes;
OptionRow.defaultProps = defaultProps;
OptionRow.displayName = 'OptionRow';

export default React.memo(
withLocalize(OptionRow),
Expand Down
1 change: 1 addition & 0 deletions src/components/Pressable/PressableWithDelayToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function PressableWithDelayToggle(props) {

PressableWithDelayToggle.propTypes = propTypes;
PressableWithDelayToggle.defaultProps = defaultProps;
PressableWithDelayToggle.displayName = 'PressableWithDelayToggle';

const PressableWithDelayToggleWithRef = React.forwardRef((props, ref) => (
<PressableWithDelayToggle
Expand Down
2 changes: 2 additions & 0 deletions src/components/ValidateCode/JustSignedInModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ function JustSignedInModal(props) {
}

JustSignedInModal.propTypes = propTypes;
JustSignedInModal.displayName = 'JustSignedInModal';

export default withLocalize(JustSignedInModal);
2 changes: 2 additions & 0 deletions src/components/ValidateCode/ValidateCodeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ function ValidateCodeModal(props) {

ValidateCodeModal.propTypes = propTypes;
ValidateCodeModal.defaultProps = defaultProps;
ValidateCodeModal.displayName = 'ValidateCodeModal';

export default compose(
withLocalize,
withOnyx({
Expand Down
1 change: 1 addition & 0 deletions src/components/WalletStatementModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function WalletStatementModal({statementPageURL, session}) {

WalletStatementModal.propTypes = walletStatementPropTypes;
WalletStatementModal.defaultProps = walletStatementDefaultProps;
WalletStatementModal.displayName = 'WalletStatementModal';

export default compose(
withLocalize,
Expand Down
1 change: 1 addition & 0 deletions src/pages/EnablePayments/OnfidoPrivacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function OnfidoPrivacy({walletOnfidoData, translate, form}) {

OnfidoPrivacy.propTypes = propTypes;
OnfidoPrivacy.defaultProps = defaultProps;
OnfidoPrivacy.displayName = 'OnfidoPrivacy';

export default compose(
withLocalize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ function ReportActionCompose({

ReportActionCompose.propTypes = propTypes;
ReportActionCompose.defaultProps = defaultProps;
ReportActionCompose.displayName = 'ReportActionCompose';

export default compose(
withNetwork(),
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ function InitialSettingsPage(props) {

InitialSettingsPage.propTypes = propTypes;
InitialSettingsPage.defaultProps = defaultProps;
InitialSettingsPage.displayName = 'InitialSettingsPage';

export default compose(
withLocalize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ function BaseValidateCodeForm(props) {

BaseValidateCodeForm.propTypes = propTypes;
BaseValidateCodeForm.defaultProps = defaultProps;
BaseValidateCodeForm.displayName = 'BaseValidateCodeForm';

export default compose(
withLocalize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function CodesStep({account = defaultAccount}) {
}

CodesStep.propTypes = TwoFactorAuthPropTypes;
CodesStep.displayName = 'CodesStep';

// eslint-disable-next-line rulesdir/onyx-props-must-have-default
export default withOnyx({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ function DisabledStep() {
);
}

DisabledStep.displayName = 'DisabledStep';

export default DisabledStep;
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ function EnabledStep() {
);
}

EnabledStep.displayName = 'EnabledStep';

export default EnabledStep;
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ VerifyStep.propTypes = {
}),
};
VerifyStep.defaultProps = defaultProps;
VerifyStep.displayName = 'VerifyStep';

// eslint-disable-next-line rulesdir/onyx-props-must-have-default
export default withOnyx({
Expand Down
1 change: 1 addition & 0 deletions src/pages/signin/SAMLSignInPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function SAMLSignInPage({credentials}) {

SAMLSignInPage.propTypes = propTypes;
SAMLSignInPage.defaultProps = defaultProps;
SAMLSignInPage.displayName = 'SAMLSignInPage';

export default withOnyx({
credentials: {key: ONYXKEYS.CREDENTIALS},
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/WorkspacesListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, u

WorkspacesListPage.propTypes = propTypes;
WorkspacesListPage.defaultProps = defaultProps;
WorkspacesListPage.displayName = 'WorkspacesListPage';

export default compose(
withPolicyAndFullscreenLoading,
Expand Down