@@ -3,7 +3,7 @@ import { useState } from 'react';
33import Button from '@mui/material/Button' ;
44import Checkbox from '@mui/material/Checkbox' ;
55import FormControlLabel from '@mui/material/FormControlLabel' ;
6- import Grid from '@mui/material/Grid ' ;
6+ import Grid from '@mui/material/Grid2 ' ;
77import MenuItem from '@mui/material/MenuItem' ;
88import Paper from '@mui/material/Paper' ;
99import Radio from '@mui/material/Radio' ;
@@ -155,8 +155,7 @@ const Settings = () => {
155155 return (
156156 < Layout title = { t ( 'menu:settings' ) as string } withBackButton >
157157 < Grid
158- item
159- xs = { 12 }
158+ size = { 12 }
160159 css = { css `
161160 max-height : calc (100vh - 68px );
162161 overflow-y : auto;
@@ -196,7 +195,7 @@ const Settings = () => {
196195 }
197196 ` }
198197 >
199- < Grid item xs = { 12 } >
198+ < Grid size = { 12 } >
200199 < PanelHeader
201200 title = { t ( 'settings-language-title' ) }
202201 desc = { t ( 'settings-language-desc' ) }
@@ -220,7 +219,7 @@ const Settings = () => {
220219 </ Select >
221220 </ Typography >
222221 </ Grid >
223- < Grid item xs = { 12 } css = { marginTopSm } >
222+ < Grid size = { 12 } css = { marginTopSm } >
224223 < PanelHeader title = { t ( 'settings-title-2' ) } desc = { t ( 'settings-desc-2' ) } />
225224 < RadioGroup
226225 row
@@ -247,10 +246,10 @@ const Settings = () => {
247246 />
248247 </ RadioGroup >
249248 </ Grid >
250- < Grid item xs = { 12 } css = { marginTopSm } >
249+ < Grid size = { 12 } css = { marginTopSm } >
251250 < PanelHeader title = { t ( 'settings-title-1' ) } desc = { t ( 'settings-desc-1' ) } />
252251 < Grid container >
253- < Grid item xs = { 12 } >
252+ < Grid size = { 12 } >
254253 < FormControlLabel
255254 control = {
256255 < Checkbox
@@ -263,7 +262,7 @@ const Settings = () => {
263262 label = { t ( 'menu:show-player-controller' ) }
264263 />
265264 </ Grid >
266- < Grid item xs = { 12 } >
265+ < Grid size = { 12 } >
267266 < FormControlLabel
268267 control = {
269268 < Checkbox
@@ -276,7 +275,7 @@ const Settings = () => {
276275 label = { t ( 'menu:hide-header' ) }
277276 />
278277 </ Grid >
279- < Grid item xs = { 12 } >
278+ < Grid size = { 12 } >
280279 < FormControlLabel
281280 control = {
282281 < Checkbox
@@ -289,7 +288,7 @@ const Settings = () => {
289288 label = { t ( 'menu:letterbox' ) }
290289 />
291290 </ Grid >
292- < Grid item xs = { 12 } >
291+ < Grid size = { 12 } >
293292 < FormControlLabel
294293 control = {
295294 < Checkbox
@@ -302,7 +301,7 @@ const Settings = () => {
302301 label = { t ( 'menu:hide-context' ) }
303302 />
304303 </ Grid >
305- < Grid item xs = { 12 } >
304+ < Grid size = { 12 } >
306305 < FormControlLabel
307306 control = {
308307 < Checkbox
@@ -315,7 +314,7 @@ const Settings = () => {
315314 label = { t ( 'menu:adjust-original-size' ) }
316315 />
317316 </ Grid >
318- < Grid item xs = { 12 } >
317+ < Grid size = { 12 } >
319318 < FormControlLabel
320319 control = {
321320 < Checkbox
@@ -328,7 +327,7 @@ const Settings = () => {
328327 label = { t ( 'menu:show-player-version-select' ) }
329328 />
330329 </ Grid >
331- < Grid item xs = { 12 } >
330+ < Grid size = { 12 } >
332331 < FormControlLabel
333332 control = {
334333 < Checkbox
@@ -343,7 +342,7 @@ const Settings = () => {
343342 </ Grid >
344343 </ Grid >
345344 </ Grid >
346- < Grid item xs = { 12 } css = { marginTopSm } >
345+ < Grid size = { 12 } css = { marginTopSm } >
347346 < PanelHeader title = { t ( 'settings-title-3' ) } desc = { t ( 'settings-desc-3' ) } />
348347 < RadioGroup
349348 aria-label = "position"
@@ -379,7 +378,7 @@ const Settings = () => {
379378 />
380379 </ RadioGroup >
381380 </ Grid >
382- < Grid item xs = { 12 } css = { marginTopSm } >
381+ < Grid size = { 12 } css = { marginTopSm } >
383382 < PanelHeader title = { t ( 'settings-title-4' ) } desc = { t ( 'settings-desc-4' ) } />
384383 < RadioGroup
385384 row
@@ -411,7 +410,7 @@ const Settings = () => {
411410 />
412411 </ RadioGroup >
413412 </ Grid >
414- < Grid item xs = { 12 } css = { marginTopSm } >
413+ < Grid size = { 12 } css = { marginTopSm } >
415414 < PanelHeader title = { t ( 'settings-title-5' ) } desc = { t ( 'settings-desc-5' ) } />
416415 < RadioGroup
417416 row
@@ -433,10 +432,10 @@ const Settings = () => {
433432 />
434433 </ RadioGroup >
435434 </ Grid >
436- < Grid item xs = { 12 } >
435+ < Grid size = { 12 } >
437436 < PanelHeader title = { t ( 'settings-other-title' ) } desc = { t ( 'settings-other-desc' ) } />
438437 < Grid container >
439- < Grid item xs = { 12 } >
438+ < Grid size = { 12 } >
440439 < Button
441440 color = "primary"
442441 variant = "contained"
@@ -449,7 +448,7 @@ const Settings = () => {
449448 </ Grid >
450449 </ Grid >
451450 </ Grid >
452- < Grid item xs = { 12 } css = { marginTopSm } >
451+ < Grid size = { 12 } css = { marginTopSm } >
453452 < PanelHeader title = { t ( 'settings-reset-title' ) } desc = { t ( 'settings-reset-desc' ) } />
454453 < Typography component = "div" css = { marginTopSm } >
455454 < Button variant = "contained" size = "small" color = "secondary" onClick = { handleReset } >
0 commit comments