Update dependency mui to v9.x

This commit is contained in:
schroda
2026-04-25 17:14:08 +02:00
parent 8155bd6906
commit f95b0c8bcc
30 changed files with 191 additions and 272 deletions

View File

@@ -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 />

View File

@@ -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>
);