diff --git a/src/App.js b/src/App.js index fdd927e..d4f887b 100644 --- a/src/App.js +++ b/src/App.js @@ -85,13 +85,21 @@ function PageContents() { const wallet = useWallet(); const [page] = usePage(); const [showWalletSuggestion, setShowWalletSuggestion] = useState(true); + const suggestionKey = 'private-irgnore-wallet-suggestion'; + const ignoreSuggestion = window.localStorage.getItem(suggestionKey); if (!wallet) { return ( <> - setShowWalletSuggestion(false)} - /> + {!ignoreSuggestion && ( + setShowWalletSuggestion(false)} + onIgnore={() => { + window.localStorage.setItem(suggestionKey, true); + setShowWalletSuggestion(false); + }} + /> + )} ); @@ -116,7 +124,7 @@ const useStyles = makeStyles(() => ({ }, })); -function WalletSuggestionDialog({ open, onClose }) { +function WalletSuggestionDialog({ open, onClose, onIgnore }) { const classes = useStyles(); return ( @@ -202,6 +210,9 @@ function WalletSuggestionDialog({ open, onClose }) { +