-
Notifications
You must be signed in to change notification settings - Fork 34
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
Move disk source outside the add disk modal dialog #2061
Move disk source outside the add disk modal dialog #2061
Conversation
src/utils/components/DiskSourceFlyoutMenu/DiskSourceFlyoutMenu.tsx
Outdated
Show resolved
Hide resolved
src/utils/components/DiskSourceFlyoutMenu/DiskSourceFlyoutMenu.tsx
Outdated
Show resolved
Hide resolved
<MenuContent> | ||
<MenuList> | ||
{options?.map(({ description, groupLabel, items }) => { | ||
const isFlyout = items?.length > 1; |
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 need its only used once
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 can do this, I thought it would be more readable like this when the condition has context to it
</Menu> | ||
); | ||
|
||
return ( |
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 understand why menu and toggle are here, as nested components, as they are deeply coupled, but still consider exporting them to new files and giving them the right Capital naming.
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.
c5645b4
to
d697000
Compare
Signed-off-by: Aviv Turgeman <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: avivtur, metalice The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
📝 Description
Changing the
Add disk
button to a flyout-dropdown to select the disk source from outside the add disk dialog.🎥 Demo
After:
reorganize-disk-modal.mp4