Update dependency mui to v9.x
This commit is contained in:
@@ -22,11 +22,12 @@ export const SearchTextField = ({
|
||||
{...textFieldProps}
|
||||
slotProps={{
|
||||
input: {
|
||||
...textFieldProps.InputProps,
|
||||
...textFieldProps.slotProps?.input,
|
||||
sx: {
|
||||
color: 'inherit',
|
||||
},
|
||||
endAdornment: textFieldProps.InputProps?.endAdornment ?? (
|
||||
// @ts-expect-error - "endAdornment" does not exist mimimi - fuck off
|
||||
endAdornment: textFieldProps.slotProps?.input?.endAdornment ?? (
|
||||
<InputAdornment position="end">
|
||||
<IconButton {...cancelButtonProps} onClick={() => onCancel()}>
|
||||
<CancelIcon />
|
||||
|
||||
@@ -13,7 +13,7 @@ export const Select = <Value,>({
|
||||
maxSelectionHeightPx = 250,
|
||||
...props
|
||||
}: React.ComponentProps<typeof MuiSelect<Value>> & { maxSelectionHeightPx?: number }) => (
|
||||
<MuiSelect<Value> MenuProps={{ PaperProps: { style: { maxHeight: maxSelectionHeightPx } } }} {...props}>
|
||||
<MuiSelect<Value> MenuProps={{ slotProps: { paper: { sx: { maxHeight: maxSelectionHeightPx } } } }} {...props}>
|
||||
{children}
|
||||
</MuiSelect>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user