-
Notifications
You must be signed in to change notification settings - Fork 46
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
Button to add a drive to the storage proposal #1977
base: storage-config-ui
Are you sure you want to change the base?
Button to add a drive to the storage proposal #1977
Conversation
2ce80c3
to
6cd9c15
Compare
@dgdavid The tests are failing due to PatternFly type definitions. The property In fact it works just fine, so the type restriction looks kind of arbitrary to me. Is there a way to fix it without having to migrate the whole component to use a menu instead of a dropdown? |
* | ||
* @param device - Device to represent | ||
*/ | ||
export default function MenuDeviceDescription({ device }): React.ReactNode { |
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.
Please, define a MenuDeviceDescriptionProps
type.
Looking at their code base and git history, look to me as an out-dated prop. What I can see is that MenuGroup#label was an string until two years ago, patternfly/patternfly-react#8219 and the component itself was added 5 years ago patternfly/patternfly-react@e867f09 While the SelectGroup#label types dates from 6 years ago. So, maybe a bug report for PatternFly :) Meanwhile, I'd migrate it to Menu if it does not hurt or, if you prefer, add a |
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.
Would be nice if you add these missing tests 😈
c22e64c
to
de9092f
Compare
de9092f
to
e581abd
Compare
Adds the following button to the new storage UI.
If there are no extra devices to add, the button is not displayed.
Missing
Unit tests are still missing