-
Notifications
You must be signed in to change notification settings - Fork 394
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
⚙️ Add the first page for the menu/settings tab #342
Conversation
A WIP. I'd like to split out some of these pieces into their own component file. And this is all just visual.
Originally was in the Menu page itself
3b62288
to
74e65e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and it looks good! But I think this could use a couple minor code changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice PR and I dig the working toggle button w/ transition :)
had one question about the settings array in the Menu.tsx
ui/pages/Menu.tsx
Outdated
<div className="icon_lock" /> | ||
<h3>General</h3> | ||
<ul> | ||
{settings.slice(0, 4).map((setting) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a common pattern in react?
It might be easier to follow using the values inline in the template instead of using settings array and slice on it.
The Main Currency action might be a good candidate for putting it in a separate function though
Co-authored-by: Rachel Fish <itsrachelfish@gmail.com>
Co-authored-by: Rachel Fish <itsrachelfish@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Settings tab
This aims to eventually allow users to edit extension-wide settings. Currently, this is all just visual components on the first page. That said, the toggle button does flip between off and on when clicked with a smooth transition.