Skip to content
Merged
Changes from 1 commit
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
19 changes: 18 additions & 1 deletion src/components/MoneyRequestReportView/SelectionToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,4 +362,21 @@ function SelectionToolbar({reportID, transactions, reportActions}: SelectionTool
);
}

export default SelectionToolbar;
function SelectionToolbarGate({reportID, transactions, reportActions}: SelectionToolbarProps) {
const {selectedTransactionIDs} = useSearchStateContext();
const isMobileSelectionModeEnabled = useMobileSelectionMode();

if (selectedTransactionIDs.length === 0 && !isMobileSelectionModeEnabled) {
return null;
Comment thread
mountiny marked this conversation as resolved.
}

return (
<SelectionToolbar
reportID={reportID}
transactions={transactions}
reportActions={reportActions}
/>
);
}

export default SelectionToolbarGate;
Loading