Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onboarding: Add TokensSettings Screen #517

Merged
merged 2 commits into from
Jul 14, 2021
Merged

Onboarding: Add TokensSettings Screen #517

merged 2 commits into from
Jul 14, 2021

Conversation

pavloMandryk
Copy link
Collaborator

This PR contains the TokensSettings screen for the Onboarding, it consists in:

  • A folder with the Tokens icon for the Header.

  • The Header component used in every wizard screen.

  • The KnownAppBadge component to display the icons in the Header.

  • The TokenSettings main screen.

    • The TokensSettingsNative screen that displays when the user selects "Native" when choosing Garden Type.
    • The TokensSettingsBYOT screen that displays when the user selects "BYOT" when choosing Garden Type.
  • Adding changes to the useToken hook to fetch the token symbol, set loading only when an address is provided and treat an exception.

@vercel
Copy link

vercel bot commented Jun 26, 2021

@pavloMandryk is attempting to deploy a commit to the 1hive Team on Vercel.

A member of the Team first needs to authorize it.

src/hooks/useToken.js Outdated Show resolved Hide resolved
@0xGabi 0xGabi marked this pull request as ready for review June 29, 2021 19:46
Copy link
Member

@fabriziovigevani fabriziovigevani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job @pavloMandryk

Left some corrections and suggestions. Let me know wdyt!

src/components/Onboarding/Screens/Apps/TokensSettings.js Outdated Show resolved Hide resolved
Copy link
Member

@0xGabi 0xGabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, we are getting close! 🙌

I like the BYOT screen. Left a couple of suggestions.

@pavloMandryk pavloMandryk requested a review from 0xGabi July 7, 2021 22:16
Copy link
Member

@0xGabi 0xGabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @pavloMandryk. I appreciate you kept receptive to our feedback and that you have addressed our suggestions super fast. Despite we drop the ball and took longer for us to fully review your work. It is great to have you on the team 🙌

)
}, [])

const handleNext = useCallback(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing that I notice with a final review is that when we do onBack we are not storing the config changes if they were any. I don't think this is particularly bad behavior. Just wanted to bring it up to have your oppinions.

cc @fabriziovigevani

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regardless I think this PR is adding a lot of value. We can create a new one with that specific change on every onBack across screens if we decided to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. I think we'll need to create a PR to fix it on every onBack. It is not such a rare practice, when using a installation wizard, moving backwards and performing changes. It would be nice to have support for it.

@0xGabi 0xGabi merged commit e3af309 into 1Hive:gardens Jul 14, 2021
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.

None yet

3 participants