aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-07 08:41:29 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-07 08:41:29 -0700
commit96e4550c198ae82700980f6a1d6355e5609a8f5c (patch)
tree9552b94232cf1bf3a9ae2f2fb9a65a1b3f6960fa
parentfee9fd04191767117de75cc1497c626d5dcbe9ee (diff)
downloadtrackermap-web-96e4550c198ae82700980f6a1d6355e5609a8f5c.tar.gz
trackermap-web-96e4550c198ae82700980f6a1d6355e5609a8f5c.tar.bz2
trackermap-web-96e4550c198ae82700980f6a1d6355e5609a8f5c.zip
Fix deprecated
-rw-r--r--src/main/MainToolbar.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/MainToolbar.jsx b/src/main/MainToolbar.jsx
index b029529c..c3405ff4 100644
--- a/src/main/MainToolbar.jsx
+++ b/src/main/MainToolbar.jsx
@@ -90,8 +90,10 @@ const MainToolbar = ({
horizontal: Number(theme.spacing(2).slice(0, -2)),
}}
marginThreshold={0}
- PaperProps={{
- style: { width: `calc(${toolbarRef.current?.clientWidth}px - ${theme.spacing(4)})` },
+ slotProps={{
+ paper: {
+ style: { width: `calc(${toolbarRef.current?.clientWidth}px - ${theme.spacing(4)})` },
+ }
}}
elevation={1}
disableAutoFocus