Skip to content

Commit 80b22c7

Browse files
committed
revert ComposerLocalTime offline-hide; keep prod dim behavior
1 parent 5371e72 commit 80b22c7

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/pages/inbox/report/ReportActionCompose/ComposerLocalTime.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import OfflineWithFeedback from '@components/OfflineWithFeedback';
33
import {usePersonalDetails} from '@components/OnyxListItemProvider';
44
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
5-
import useNetwork from '@hooks/useNetwork';
65
import useOnyx from '@hooks/useOnyx';
76
import {canShowReportRecipientLocalTime, getReportOfflinePendingActionAndErrors, getReportRecipientAccountIDs} from '@libs/ReportUtils';
87
import ParticipantLocalTime from '@pages/inbox/report/ParticipantLocalTime';
@@ -14,17 +13,12 @@ type ComposerLocalTimeProps = {
1413
};
1514

1615
function ComposerLocalTime({reportID}: ComposerLocalTimeProps) {
17-
const {isOffline} = useNetwork();
1816
const [isComposerFullSize = false] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_IS_COMPOSER_FULL_SIZE}${reportID}`);
1917
const currentUserPersonalDetails = useCurrentUserPersonalDetails();
2018
const personalDetails = usePersonalDetails();
2119
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`);
2220
const {reportPendingAction: pendingAction} = getReportOfflinePendingActionAndErrors(report);
2321

24-
if (isOffline) {
25-
return null;
26-
}
27-
2822
const shouldShow = canShowReportRecipientLocalTime(personalDetails, report, currentUserPersonalDetails.accountID) && !isComposerFullSize;
2923
const reportRecipientAccountIDs = getReportRecipientAccountIDs(report, currentUserPersonalDetails.accountID);
3024
const reportRecipient = personalDetails?.[reportRecipientAccountIDs[0]];

0 commit comments

Comments
 (0)