Skip to content

Commit

Permalink
fix: list
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbalssa committed May 4, 2023
1 parent 9460687 commit 3714271
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
13 changes: 6 additions & 7 deletions src/components/Transactions/List.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useMemo } from 'react';
import { Alert, RefreshControl, View } from 'react-native';
import { Alert, RefreshControl } from 'react-native';
import {
Box, Button, Heading, HStack, Icon, Pressable, ScrollView, Skeleton, Text, VStack,
Box, HStack, Icon, Pressable, Skeleton, Text, VStack,
} from 'native-base';
import { MaterialCommunityIcons, MaterialIcons } from '@expo/vector-icons';
import { SwipeListView } from 'react-native-swipe-list-view';
Expand All @@ -10,14 +10,13 @@ import Animated, { Layout } from 'react-native-reanimated';
import moment from 'moment';
import * as Haptics from 'expo-haptics';
import { ImpactFeedbackStyle } from 'expo-haptics';
import { useDispatch, useSelector } from 'react-redux';
import { useSelector } from 'react-redux';
import RangeTitle from '../UI/RangeTitle';
import colors from '../../constants/colors';
import { TransactionType } from '../../models/transactions';
import { RootDispatch, RootState } from '../../store';
import { RootState } from '../../store';
import { translate } from '../../i18n/locale';
import {getLocales} from "expo-localization";
import {localNumberFormat} from "../../lib/common";
import { localNumberFormat } from '../../lib/common';

const Basic = ({
loadingRefresh,
Expand Down Expand Up @@ -213,7 +212,7 @@ const Basic = ({
initialNumToRender={10}
keyExtractor={(item: TransactionType) => item.id}
showsVerticalScrollIndicator
onEndReached={onEndReached}
onEndReached={() => !(loadingRefresh || loadingMore) && onEndReached()}
onEndReachedThreshold={0}
data={!loadingRefresh ? transactions : []}
renderItem={({ item }) => <RenderItem item={item} />}
Expand Down
1 change: 0 additions & 1 deletion src/models/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export default createModel<RootModel>()({
dispatch.accounts.getAccounts(),
dispatch.categories.getInsightCategories(),
]);
dispatch.firefly.getBalances();
},
}),
});
2 changes: 0 additions & 2 deletions src/models/firefly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ export default createModel<RootModel>()({
dispatch.transactions.getTransactions(),
dispatch.categories.getInsightCategories(),
]);

//dispatch.firefly.getBalances();
},

/**
Expand Down

0 comments on commit 3714271

Please sign in to comment.