Skip to content

Commit 3e964b5

Browse files
authored
Merge pull request Expensify#89740 from callstack-internal/decompose/composer-pr7-footer-and-cleanups
[NO QA] ReportActionCompose 7/10: drop guard + memo strip
2 parents c34b196 + 80b22c7 commit 3e964b5

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/components/ExceededCommentLength.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {memo} from 'react';
1+
import React from 'react';
22
import useLocalize from '@hooks/useLocalize';
33
import useThemeStyles from '@hooks/useThemeStyles';
44
import CONST from '@src/CONST';
@@ -25,4 +25,4 @@ function ExceededCommentLength({maxCommentLength = CONST.MAX_COMMENT_LENGTH, isT
2525
);
2626
}
2727

28-
export default memo(ExceededCommentLength);
28+
export default ExceededCommentLength;

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ function ComposerInner({reportID}: ReportActionComposeProps) {
3333
const [isComposerFullSize = false] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_IS_COMPOSER_FULL_SIZE}${reportID}`);
3434
const {reportPendingAction: pendingAction} = getReportOfflinePendingActionAndErrors(report);
3535

36-
if (!report) {
37-
return null;
38-
}
39-
4036
return (
4137
<View style={[isComposerFullSize && styles.chatItemFullComposeRow]}>
4238
<Composer.LocalTime reportID={reportID} />

0 commit comments

Comments
 (0)