Skip to content

Commit

Permalink
Cleanup unused coinrow components (#5142)
Browse files Browse the repository at this point in the history
* Remove unused BalanceCoinRow

* Remove unused function in SharedValuesContext for isCoinListEdited

* Remove RecyclerActivityList

* Remove unused TransactionCoinRow

* Remove unused ContractInteractionCoinRow

* Remove unused BalanceText

* Remove unused TransactionStatusBadge

* Remove unused ProfileMasthead

* Remove unused transactionActions helpers

* Remove unused transaction helper functions
  • Loading branch information
jinchung authored Nov 8, 2023
1 parent 1c9d1cf commit a3719b7
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 1,026 deletions.
17 changes: 1 addition & 16 deletions src/components/activity-list/ActivityList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import ActivityIndicator from '../ActivityIndicator';
import Spinner from '../Spinner';
import { ButtonPressAnimation } from '../animations';
import { CoinRowHeight } from '../coin-row/CoinRow';
import { TRANSACTION_COIN_ROW_VERTICAL_PADDING } from '../coin-row/TransactionCoinRow';
import Text from '../text/Text';
import ActivityListEmptyState from './ActivityListEmptyState';
import ActivityListHeader from './ActivityListHeader';
import RecyclerActivityList from './RecyclerActivityList';
import styled from '@/styled-thing';
import { useTheme } from '@/theme';
import { useSectionListScrollToTopContext } from '@/navigation/SectionListScrollToTopContext';
Expand All @@ -24,6 +22,7 @@ const sx = StyleSheet.create({
});

const ActivityListHeaderHeight = 42;
const TRANSACTION_COIN_ROW_VERTICAL_PADDING = 7;

const getItemLayout = sectionListGetItemLayout({
getItemHeight: () =>
Expand Down Expand Up @@ -86,16 +85,13 @@ function ListFooterComponent({ label, onPress }) {
}

const ActivityList = ({
addCashAvailable,
hasPendingTransaction,
header,
isEmpty,
isLoading,
nativeCurrency,
navigation,
network,
nextPage,
recyclerListView,
remainingItemsLabel,
requests,
sections,
Expand Down Expand Up @@ -127,17 +123,6 @@ const ActivityList = ({
if (network === networkTypes.mainnet || sections.length) {
if (isEmpty && !isLoading) {
return <ActivityListEmptyState>{header}</ActivityListEmptyState>;
} else if (recyclerListView) {
return (
<RecyclerActivityList
addCashAvailable={addCashAvailable}
header={null}
isEmpty={isEmpty}
isLoading={isLoading}
navigation={navigation}
sections={sections}
/>
);
} else {
return (
<SectionList
Expand Down
196 changes: 0 additions & 196 deletions src/components/activity-list/RecyclerActivityList.js

This file was deleted.

Loading

0 comments on commit a3719b7

Please sign in to comment.