Skip to content

Adding a keypom trial accounts button on the landing page#137

Merged
elliotBraem merged 7 commits intomainfrom
keypom-frontend
Feb 12, 2024
Merged

Adding a keypom trial accounts button on the landing page#137
elliotBraem merged 7 commits intomainfrom
keypom-frontend

Conversation

@jaswinder6991
Copy link
Copy Markdown
Collaborator

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gateway ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 0:14am

@jaswinder6991
Copy link
Copy Markdown
Collaborator Author

Added conditional rendering for the trial account generator, also introduced a new prop called currentGateway in the app.js.
Conditions implemented for the TrialAccountGenerator

  1. Don't show it for testnet gateway, you will generate a mainnet key that won't work on testnet wasting NEAR on mainnet.
  2. Don't show this for other gateways as they won't have the TrialAccountGenerator custom element.
  3. Don't show this if user is already logged in. context.accountId not working here.

@jaswinder6991 jaswinder6991 marked this pull request as ready for review February 12, 2024 13:50
@elliotBraem elliotBraem merged commit a2daa53 into main Feb 12, 2024
@Megha-Dev-19 Megha-Dev-19 deleted the keypom-frontend branch May 15, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants