-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[web] Tidy reused Menu components #48904
Conversation
48a53f3
to
491b36d
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.
with comment
06c37c7
to
34ce3fc
Compare
@@ -164,8 +164,7 @@ export const MultiselectMenu = <T extends string>({ | |||
<> | |||
<CheckboxInput | |||
type="checkbox" | |||
// @ts-expect-error assigning ReactNode to checkbox name field | |||
name={opt.label} | |||
name={opt.value} |
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.
Oh yeah, opt.value
is much better and actually aligns with what this attribute is for – it completely escaped my head when I was writing the original comment.
web/packages/shared/components/Controls/MultiselectMenu.story.tsx
Outdated
Show resolved
Hide resolved
web/packages/shared/components/Controls/ViewModeSwitch.story.tsx
Outdated
Show resolved
Hide resolved
da953ff
to
c34f66d
Compare
* Add generic MultiselectMenu, ViewModeSwitch, SortMenu components
c34f66d
to
576175b
Compare
Add generic MultiselectMenu, ViewModeSwitch, and SortMenu components, replace usages in UnifiedResources.
Resolves #5457.