From bb720a000fc2dfb6c3d9cfb32a17e57a2e9dcd71 Mon Sep 17 00:00:00 2001 From: Olivier Freyssinet Date: Mon, 9 May 2022 10:28:11 +0200 Subject: [PATCH] Fix discreet mode on portfolio history --- src/screens/Portfolio/PortfolioHistory.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/screens/Portfolio/PortfolioHistory.tsx b/src/screens/Portfolio/PortfolioHistory.tsx index 764e1c2adc..bd5e121402 100644 --- a/src/screens/Portfolio/PortfolioHistory.tsx +++ b/src/screens/Portfolio/PortfolioHistory.tsx @@ -25,12 +25,13 @@ import SectionHeader from "../../components/SectionHeader"; import LoadingFooter from "../../components/LoadingFooter"; import Button from "../../components/Button"; import { ScreenName } from "../../const"; +import { withDiscreetMode } from "../../context/DiscreetModeContext"; type Props = { navigation: any, }; -export function PortfolioHistoryList({ +export const PortfolioHistoryList = withDiscreetMode(({ onEndReached, opCount = 5, navigation, @@ -38,7 +39,7 @@ export function PortfolioHistoryList({ onEndReached?: () => void, opCount?: number, navigation: any, -}) { +}) => { const accounts = useSelector(accountsSelector); const allAccounts = useSelector(flattenAccountsSelector); @@ -127,7 +128,7 @@ export function PortfolioHistoryList({ ListEmptyComponent={ListEmptyComponent} /> ); -} +}) function PortfolioHistory({ navigation }: Props) { const [opCount, setOpCount] = useState(50);