Skip to content

Commit 3a36ddf

Browse files
committed
chore: adapt code to mui7 and muix8
1 parent 6b12dca commit 3a36ddf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/diracx-web-components/src/components/DashboardLayout/ApplicationDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
DialogContent,
88
DialogContentText,
99
Button,
10-
Grid2 as Grid,
10+
Grid,
1111
Icon,
1212
IconButton,
1313
} from "@mui/material";

packages/diracx-web-components/src/components/shared/SearchBar/DatePicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "dayjs/locale/en-gb"; // Import the locale for dayjs
1010
import { TextField, TextFieldProps } from "@mui/material";
1111

1212
interface CustomDateTimePickerProps
13-
extends Omit<DateTimePickerProps<Dayjs>, "value" | "onChange"> {
13+
extends Omit<DateTimePickerProps, "value" | "onChange"> {
1414
value: string | null;
1515
onDateAccepted: (value: string | null) => void;
1616
handleArrowKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
@@ -64,7 +64,7 @@ export function MyDateTimePicker({
6464
return (
6565
<LocalizationProvider dateAdapter={AdapterDayjs} adapterLocale={"en-gb"}>
6666
<div onClick={(e) => e.stopPropagation()}>
67-
<DateTimePicker<Dayjs>
67+
<DateTimePicker
6868
value={dateValue}
6969
onChange={(val) => setDateValue(val)}
7070
views={["year", "month", "day", "hours", "minutes", "seconds"]}

0 commit comments

Comments
 (0)