diff --git a/frontend/package.json b/frontend/package.json
index 429130a5..77131dc9 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -55,7 +55,7 @@
"@mui/base": "^5.0.0-beta.7",
"@mui/icons-material": "^5.15.9",
"@mui/lab": "^5.0.0-alpha.136",
- "@mui/material": "^5.15.9",
+ "@mui/material": "^5.15.14",
"@mui/system": "^5.15.11",
"@mui/x-data-grid": "^7.3.0",
"@mui/x-date-pickers": "^7.2.0",
diff --git a/frontend/src/components/BookTable/index.tsx b/frontend/src/components/BookTable/index.tsx
index eabb0068..453a35bf 100644
--- a/frontend/src/components/BookTable/index.tsx
+++ b/frontend/src/components/BookTable/index.tsx
@@ -24,6 +24,7 @@ import {
type GridPaginationModel,
type GridColDef,
type GridValidRowModel,
+ GridSlotsComponent,
} from '@mui/x-data-grid';
import currencyDict from '../../../static/assets/currencies.json';
import { type PublicOrder } from '../../models';
@@ -204,12 +205,12 @@ const BookTable = ({
renderCell: (params: any) => {
return (
{
onOrderClicked(params.row.id, params.row.coordinatorShortAlias);
}}
>
-
+
-
+
);
},
@@ -236,7 +240,7 @@ const BookTable = ({
renderCell: (params: any) => {
return (
{
onOrderClicked(params.row.id, params.row.coordinatorShortAlias);
}}
@@ -270,12 +274,12 @@ const BookTable = ({
renderCell: (params: any) => {
return (
{
onClickCoordinator(params.row.coordinatorShortAlias);
}}
>
-
+
{currencyCode}
-
-
+
+
+
);
},
@@ -386,12 +391,14 @@ const BookTable = ({
onOrderClicked(params.row.id, params.row.coordinatorShortAlias);
}}
>
-
+
);
},
@@ -410,7 +417,8 @@ const BookTable = ({
{
@@ -545,7 +553,7 @@ const BookTable = ({
const minutes = Math.round((timeToExpiry - hours * (3600 * 1000)) / 60000);
return (
{
onOrderClicked(params.row.id, params.row.coordinatorShortAlias);
}}
@@ -880,19 +888,19 @@ const BookTable = ({
};
const gridComponents = useMemo(() => {
- const components: GridComponentProps = {
- LoadingOverlay: LinearProgress,
+ const components: GridSlotsComponent = {
+ loadingOverlay: LinearProgress,
};
if (showNoResults) {
- components.NoResultsOverlay = NoResultsOverlay;
- components.NoRowsOverlay = NoResultsOverlay;
+ components.noResultsOverlay = NoResultsOverlay;
+ components.noRowsOverlay = NoResultsOverlay;
}
if (showFooter) {
- components.Footer = Footer;
+ components.footer = Footer;
}
if (showControls) {
- components.Toolbar = BookControl;
+ components.toolbar = BookControl;
}
return components;
}, [showNoResults, showFooter, showControls, fullscreen]);
@@ -930,8 +938,8 @@ const BookTable = ({
setColumnVisibilityModel(newColumnVisibilityModel);
}}
hideFooter={!showFooter}
- components={gridComponents}
- componentsProps={{
+ slots={gridComponents}
+ slotProps={{
toolbar: {
width,
paymentMethod: paymentMethods,
@@ -966,12 +974,12 @@ const BookTable = ({
loading={federation.loading}
columns={columns}
hideFooter={!showFooter}
- components={gridComponents}
+ slots={gridComponents}
columnVisibilityModel={columnVisibilityModel}
onColumnVisibilityModelChange={(newColumnVisibilityModel) => {
setColumnVisibilityModel(newColumnVisibilityModel);
}}
- componentsProps={{
+ slotProps={{
toolbar: {
width,
paymentMethod: paymentMethods,
diff --git a/frontend/src/components/MakerForm/MakerForm.tsx b/frontend/src/components/MakerForm/MakerForm.tsx
index d9645b72..c2ee6d6a 100644
--- a/frontend/src/components/MakerForm/MakerForm.tsx
+++ b/frontend/src/components/MakerForm/MakerForm.tsx
@@ -1028,7 +1028,7 @@ const MakerForm = ({
views={['hours', 'minutes']}
inputFormat='HH:mm'
mask='__:__'
- componentsProps={{
+ slotProps={{
textField: {
InputProps: {
style: {
@@ -1061,7 +1061,7 @@ const MakerForm = ({
views={['hours', 'minutes']}
inputFormat='HH:mm'
mask='__:__'
- componentsProps={{
+ slotProps={{
textField: {
InputProps: {
style: {