Remove button prop
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': patch
|
||||
'@backstage/plugin-cost-insights': patch
|
||||
'@backstage/plugin-scaffolder': patch
|
||||
'@backstage/plugin-playlist': patch
|
||||
'@backstage/plugin-bazaar': patch
|
||||
---
|
||||
|
||||
Remove `button` prop from used MaterialUI `MenuItem` component fixing incompatibility with MaterialUI v5.
|
||||
@@ -60,7 +60,7 @@ export const InputSelector = ({ name, options, control, error }: Props) => {
|
||||
>
|
||||
{options.map(option => {
|
||||
return (
|
||||
<MenuItem button key={option} value={option}>
|
||||
<MenuItem key={option} value={option}>
|
||||
{option}
|
||||
</MenuItem>
|
||||
);
|
||||
|
||||
@@ -243,7 +243,6 @@ export const UserListPicker = (props: UserListPickerProps) => {
|
||||
<MenuItem
|
||||
role="none presentation"
|
||||
key={item.id}
|
||||
button
|
||||
divider
|
||||
onClick={() => setSelectedUserFilter(item.id)}
|
||||
selected={item.id === filters.user?.value}
|
||||
|
||||
@@ -44,7 +44,6 @@ const NavigationMenuItem = ({ navigation, icon, title }: NavigationItem) => {
|
||||
const [, setScroll] = useScroll();
|
||||
return (
|
||||
<MenuItem
|
||||
button
|
||||
data-testid={`menu-item-${navigation}`}
|
||||
className={classes.menuItem}
|
||||
onClick={() => setScroll(navigation)}
|
||||
|
||||
@@ -261,7 +261,6 @@ export const PersonalListPicker = () => {
|
||||
<MenuItem
|
||||
role="none presentation"
|
||||
key={item.id}
|
||||
button
|
||||
divider
|
||||
onClick={() => setSelectedPersonalFilter(item.id)}
|
||||
selected={item.id === selectedPersonalFilter}
|
||||
|
||||
@@ -111,7 +111,6 @@ export const OwnerListPicker = (props: {
|
||||
{group.items.map(item => (
|
||||
<MenuItem
|
||||
key={item.id}
|
||||
button
|
||||
divider
|
||||
ContainerProps={{ role: 'menuitem' }}
|
||||
onClick={() => onSelectOwner(item.id as 'owned' | 'all')}
|
||||
|
||||
Reference in New Issue
Block a user