Skip to content

Commit 134d974

Browse files
committed
remove noise edits to ComposerInput and useComposerSubmit
1 parent 0f53643 commit 134d974

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function ComposerInput({reportID}: ComposerInputProps) {
4141
const {handleSendMessage, onValueChange} = useComposerSendActions();
4242
const {containerRef, suggestionsRef, isNextModalWillOpenRef} = useComposerMeta();
4343

44+
const submitForm = useComposerSubmit(reportID);
45+
const {pickAttachments, PDFValidationComponent, ErrorModal} = useAttachmentPicker(reportID);
46+
4447
const [isComposerFullSize = false] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_IS_COMPOSER_FULL_SIZE}${reportID}`);
4548
const [shouldShowComposeInput = true] = useOnyx(ONYXKEYS.SHOULD_SHOW_COMPOSE_INPUT);
4649
const [blockedFromConcierge] = useOnyx(ONYXKEYS.NVP_BLOCKED_FROM_CONCIERGE);
@@ -53,9 +56,6 @@ function ComposerInput({reportID}: ComposerInputProps) {
5356
const {isScrollLayoutTriggered, raiseIsScrollLayoutTriggered} = useIsScrollLikelyLayoutTriggered();
5457

5558
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`);
56-
57-
const submitForm = useComposerSubmit(reportID);
58-
const {pickAttachments, PDFValidationComponent, ErrorModal} = useAttachmentPicker(reportID);
5959
const isReportArchived = useReportIsArchived(report?.reportID);
6060

6161
const includesConcierge = chatIncludesConcierge({participants: report?.participants});

src/pages/inbox/report/ReportActionCompose/useComposerSubmit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function useComposerSubmit(reportID: string): (comment: string) => void {
3636
const sidePanelContext = useSidePanelContext(reportID);
3737
const [quickAction] = useOnyx(ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE);
3838
const delegateAccountID = useDelegateAccountID();
39-
const {attachmentFileRef} = useComposerMeta();
4039

40+
const {attachmentFileRef} = useComposerMeta();
4141
const {scrollOffsetRef} = useContext(ActionListContext);
4242

4343
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`);

0 commit comments

Comments
 (0)