From a9b6317f113987c580e01f0cf56ee340b0fdfcce Mon Sep 17 00:00:00 2001 From: Amy Evans Date: Mon, 9 Oct 2023 13:19:15 -0400 Subject: [PATCH] Revert "fix: 26657 Another error message for a short time when opening archived chat from search bar" --- src/components/ArchivedReportFooter.js | 4 -- .../ArchivedReportFooterSkeletonView.js | 48 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 src/components/ArchivedReportFooterSkeletonView.js diff --git a/src/components/ArchivedReportFooter.js b/src/components/ArchivedReportFooter.js index df49afbc3f0b..71d331b68db0 100644 --- a/src/components/ArchivedReportFooter.js +++ b/src/components/ArchivedReportFooter.js @@ -14,7 +14,6 @@ import reportPropTypes from '../pages/reportPropTypes'; import * as ReportActionsUtils from '../libs/ReportActionsUtils'; import styles from '../styles/styles'; import * as PersonalDetailsUtils from '../libs/PersonalDetailsUtils'; -import ArchivedReportFooterSkeletonView from './ArchivedReportFooterSkeletonView'; const propTypes = { /** The reason this report was archived */ @@ -51,9 +50,6 @@ const defaultProps = { }; function ArchivedReportFooter(props) { - if (!props.reportClosedAction.reportActionID) { - return ; - } const archiveReason = lodashGet(props.reportClosedAction, 'originalMessage.reason', CONST.REPORT.ARCHIVE_REASON.DEFAULT); let displayName = PersonalDetailsUtils.getDisplayNameOrDefault(props.personalDetails, [props.report.ownerAccountID, 'displayName']); diff --git a/src/components/ArchivedReportFooterSkeletonView.js b/src/components/ArchivedReportFooterSkeletonView.js deleted file mode 100644 index 5fbc3c9d9e2c..000000000000 --- a/src/components/ArchivedReportFooterSkeletonView.js +++ /dev/null @@ -1,48 +0,0 @@ -import PropTypes from 'prop-types'; -import React from 'react'; -import SkeletonViewContentLoader from 'react-content-loader/native'; -import {View} from 'react-native'; -import {Rect} from 'react-native-svg'; -import compose from '../libs/compose'; -import styles from '../styles/styles'; -import themeColors from '../styles/themes/default'; -import withLocalize from './withLocalize'; -import withWindowDimensions from './withWindowDimensions'; - -const propTypes = { - /** Whether to animate the skeleton view */ - shouldAnimate: PropTypes.bool, -}; - -const defaultTypes = { - shouldAnimate: true, -}; - -function ArchivedReportFooterSkeletonView(props) { - return ( - - - - - - ); -} - -ArchivedReportFooterSkeletonView.propTypes = propTypes; -ArchivedReportFooterSkeletonView.defaultProps = defaultTypes; - -ArchivedReportFooterSkeletonView.displayName = 'ArchivedReportFooterSkeletonView'; -export default compose(withWindowDimensions, withLocalize)(ArchivedReportFooterSkeletonView);