Skip to content

Commit

Permalink
Feat/LIVE-3808 - nft gallery with reborn (#1521)
Browse files Browse the repository at this point in the history
Add paywall to receive flow
  • Loading branch information
nparigi-ledger authored Oct 11, 2022
1 parent c92d025 commit 0b702f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default function BaseNavigator() {
name={NavigatorName.ReceiveFunds}
component={ReceiveFundsNavigator}
options={{ headerShown: false }}
{...noNanoBuyNanoWallScreenOptions}
/>
<Stack.Screen
name={NavigatorName.SendFunds}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { useState, useCallback } from "react";
import { track } from "../../../analytics";

export function useReceiveNFTsModal() {
const [isModalOpened, setModalOpened] = useState<boolean>(false);

const openModal = useCallback(() => setModalOpened(true), [setModalOpened]);
const openModal = useCallback(() => {
track("button_clicked", {
button: "Add my NFTs",
});
setModalOpened(true);
}, [setModalOpened]);
const closeModal = useCallback(() => setModalOpened(false), [setModalOpened]);

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const PortfolioEmptyState = ({
</Text>
<Flex flex={1} borderBottomWidth={1} borderColor="neutral.c30" />
</Flex>
<Flex width="100%" mt={7} px={6}>
<Flex width="100%" mt={7} mb={11} px={6}>
<Button
type="shade"
outline
Expand Down

0 comments on commit 0b702f5

Please sign in to comment.