-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/reorganize top bar #33
Conversation
<Menu.Item | ||
key={item.componentID} | ||
leftSection={item.icon?.(IconSize.xs)} | ||
onClick={() => { |
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.
Consider making this a function in the component body so it won't trigger a re-render
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.
I don't follow, this does not trigger a new render?
className={'ToggleTaskBarItem'} | ||
label={item.title} | ||
labelPosition={'left'} | ||
defaultChecked={checkedMenuItems[item.componentID]} |
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.
I don't understand the checkedMenuItems... isn't it always true for all items?
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.
No, things like FlightController
and Keyboard
panels are off by default
Maybe some mantine bug with nested menus :'( |
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.
Don't feel like I want to give a full review on this until the "Add task bar icons" PR is merged, but here are some comments.
Looks good, in general :)
|
||
function toggleShutdown() { | ||
return modals.openConfirmModal({ | ||
title: 'Confirm action', |
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.
Love the addition of the modal! Not 100% sure what I think of this title, though... But I don't have any better suggestion on the top of my head 🙃
Organize top bar based on our discussion, tabbing in the top menu bar now works as expected. There is visual bug when tabbing through
View
whereTask Bar
is being highlighted even though you are tabbed to one of the other menu items. Not sure whats up with that 😞