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

LIVE-2289 - Fix discreet mode on portfolio history #2498

Merged
merged 1 commit into from
May 9, 2022
Merged
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
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