Skip to content
Merged
Changes from all commits
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
17 changes: 4 additions & 13 deletions src/components/TransactionItemRow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import TagCell from './DataCells/TagCell';
import TaxCell from './DataCells/TaxCell';
import TotalCell from './DataCells/TotalCell';
import TypeCell from './DataCells/TypeCell';
import TransactionItemRowRBR from './TransactionItemRowRBR';
import TransactionItemRowRBRWithOnyx from './TransactionItemRowRBRWithOnyx';

type ColumnComponents = {
Expand Down Expand Up @@ -441,18 +440,10 @@ function TransactionItemRow({
</View>
{columns?.map((column) => columnComponent[column])}
</View>
{}
{isInReportTableView ? (
<TransactionItemRowRBRWithOnyx
transaction={transactionItem}
missingFieldError={missingFieldError}
/>
) : (
<TransactionItemRowRBR
transactionViolations={transactionItem.violations}
missingFieldError={missingFieldError}
/> // We are rendering this component only if we are not in the report table view for performance reasons
)}
<TransactionItemRowRBRWithOnyx
transaction={transactionItem}
missingFieldError={missingFieldError}
/>
</View>
</Animated.View>
)}
Expand Down