Skip to content

Commit

Permalink
feat(moonpay): moonpay ip checks to determine if the user can access …
Browse files Browse the repository at this point in the history
…the fiat onramp (#10)

* feat(moonpay): useFiatOnrampAvailable

* feat(moonpay): ip check with moonpay for buy crypto availability

* add error state and clear up some of the sequence of logic

* add button-specific spinner, put the ... menu button behind the feature flag

* hide ... menu option if onramp is unavailable

* add live publishable moonpay key

* add initial FoR hype border flash to announcement acknowledgment

* remove ... menu access to FoR feature

* add tooltip and external link to info icon

* nicer error display

* add stale market to ack

* pr feedback from zzmp

* fix really weird react bug

* ts fix and clear timeout

* pairing staleness handler w/ zzmp
  • Loading branch information
JFrankfurt authored and just-toby committed Dec 20, 2022
1 parent 3d0b81a commit 40b2f71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/WalletDropdown/AuthenticatedHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ const AuthenticatedHeader = () => {
}, [clearCollectionFilters, closeModal, navigate, resetSellAssets, setSellPageState])

const fiatOnrampFlag = useFiatOnrampFlag()

// animate the border of the buy crypto button when a user navigates here from the feature announcement
// can be removed when components/FiatOnrampAnnouncment.tsx is no longer used
const [acknowledgements, acknowledge] = useFiatOnrampAck()
Expand Down

0 comments on commit 40b2f71

Please sign in to comment.