Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8361,7 +8361,6 @@ const CONST = {
BULK_ACTIONS_DROPDOWN: 'WorkspaceRules-BulkActionsDropdown',
},
EXPENSIFY_CARD: {
ROW: 'WorkspaceExpensifyCard-Row',
ISSUE_CARD_BUTTON: 'WorkspaceExpensifyCard-IssueCardButton',
MORE_DROPDOWN: 'WorkspaceExpensifyCard-MoreDropdown',
CHOOSE_SPEND_RULE: 'WorkspaceExpensifyCard-ChooseSpendRule',
Expand Down
14 changes: 2 additions & 12 deletions src/components/Table/TableBody.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {FlashList} from '@shopify/flash-list';
import React from 'react';
import {StyleSheet, View} from 'react-native';
import {View} from 'react-native';
import type {StyleProp, ViewProps, ViewStyle} from 'react-native';
import Text from '@components/Text';
import useBottomSafeSafeAreaPaddingStyle from '@hooks/useBottomSafeSafeAreaPaddingStyle';
Expand Down Expand Up @@ -66,8 +66,6 @@ function TableBody<DataType extends TableData>({contentContainerStyle, style, ..
addOfflineIndicatorBottomSafeAreaPadding: true,
style: shouldUseNarrowTableLayout ? styles.pb20 : styles.pb4,
});
const {minHeight: contentMinHeight} = StyleSheet.flatten(contentContainerStyle) ?? {};
const {paddingBottom: tableBodyBottomPadding} = StyleSheet.flatten(tableBodyContentContainerStyle) ?? {};

// Determine the message based on what caused the empty result
const getEmptyMessage = () => {
Expand Down Expand Up @@ -107,15 +105,7 @@ function TableBody<DataType extends TableData>({contentContainerStyle, style, ..
showsVerticalScrollIndicator={false}
maintainVisibleContentPosition={{disabled: true}}
ListEmptyComponent={isEmptyResult ? EmptyResultComponent : ListEmptyComponent}
contentContainerStyle={[
filteredAndSortedData.length === 0 && styles.flexGrow1,
listContentContainerStyle,
tableBodyContentContainerStyle,
contentContainerStyle,
shouldUseNarrowTableLayout &&
typeof contentMinHeight === 'number' &&
typeof tableBodyBottomPadding === 'number' && {minHeight: contentMinHeight + tableBodyBottomPadding},
]}
contentContainerStyle={[filteredAndSortedData.length === 0 && styles.flexGrow1, listContentContainerStyle, tableBodyContentContainerStyle, contentContainerStyle]}
keyboardShouldPersistTaps="handled"
{...restListProps}
/>
Expand Down

This file was deleted.

Loading
Loading