Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Fix discreet mode on portfolio history (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofreyssinet-ledger authored May 9, 2022
1 parent cbdc86f commit c4409e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/screens/Portfolio/PortfolioHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,21 @@ 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,
}: {
onEndReached?: () => void,
opCount?: number,
navigation: any,
}) {
}) => {
const accounts = useSelector(accountsSelector);
const allAccounts = useSelector(flattenAccountsSelector);

Expand Down Expand Up @@ -127,7 +128,7 @@ export function PortfolioHistoryList({
ListEmptyComponent={ListEmptyComponent}
/>
);
}
})

function PortfolioHistory({ navigation }: Props) {
const [opCount, setOpCount] = useState(50);
Expand Down

0 comments on commit c4409e2

Please sign in to comment.