33import Button from "@mui/material/Button" ;
44import { useForm , FormProvider , useFormState } from "react-hook-form" ;
55import Container from "@mui/material/Container" ;
6- import Grid from "@mui/material/Grid " ;
6+ import Grid from "@mui/material/Grid2 " ;
77import Typography from "@mui/material/Typography" ;
88import FormTextInput from "@/components/form/text-input/form-text-input" ;
99import * as yup from "yup" ;
@@ -204,40 +204,40 @@ function FormEditUser() {
204204 < Container maxWidth = "xs" >
205205 < form onSubmit = { onSubmit } >
206206 < Grid container spacing = { 2 } mb = { 3 } mt = { 3 } >
207- < Grid item xs = { 12 } >
207+ < Grid size = { { xs : 12 } } >
208208 < Typography variant = "h6" >
209209 { t ( "admin-panel-users-edit:title1" ) }
210210 </ Typography >
211211 </ Grid >
212- < Grid item xs = { 12 } >
212+ < Grid size = { { xs : 12 } } >
213213 < FormAvatarInput < EditUserFormData > name = "photo" testId = "photo" />
214214 </ Grid >
215215
216- < Grid item xs = { 12 } >
216+ < Grid size = { { xs : 12 } } >
217217 < FormTextInput < EditUserFormData >
218218 name = "email"
219219 testId = "email"
220220 label = { t ( "admin-panel-users-edit:inputs.email.label" ) }
221221 />
222222 </ Grid >
223223
224- < Grid item xs = { 12 } >
224+ < Grid size = { { xs : 12 } } >
225225 < FormTextInput < EditUserFormData >
226226 name = "firstName"
227227 testId = "first-name"
228228 label = { t ( "admin-panel-users-edit:inputs.firstName.label" ) }
229229 />
230230 </ Grid >
231231
232- < Grid item xs = { 12 } >
232+ < Grid size = { { xs : 12 } } >
233233 < FormTextInput < EditUserFormData >
234234 name = "lastName"
235235 testId = "last-name"
236236 label = { t ( "admin-panel-users-edit:inputs.lastName.label" ) }
237237 />
238238 </ Grid >
239239
240- < Grid item xs = { 12 } >
240+ < Grid size = { { xs : 12 } } >
241241 < FormSelectInput < EditUserFormData , Pick < Role , "id" > >
242242 name = "role"
243243 testId = "role"
@@ -257,7 +257,7 @@ function FormEditUser() {
257257 />
258258 </ Grid >
259259
260- < Grid item xs = { 12 } >
260+ < Grid size = { { xs : 12 } } >
261261 < EditUserFormActions />
262262 < Box ml = { 1 } component = "span" >
263263 < Button
@@ -326,21 +326,21 @@ function FormChangePasswordUser() {
326326 < Container maxWidth = "xs" >
327327 < form onSubmit = { onSubmit } >
328328 < Grid container spacing = { 2 } mb = { 3 } mt = { 3 } >
329- < Grid item xs = { 12 } >
329+ < Grid size = { { xs : 12 } } >
330330 < Typography variant = "h6" >
331331 { t ( "admin-panel-users-edit:title2" ) }
332332 </ Typography >
333333 </ Grid >
334334
335- < Grid item xs = { 12 } >
335+ < Grid size = { { xs : 12 } } >
336336 < FormTextInput < ChangeUserPasswordFormData >
337337 name = "password"
338338 type = "password"
339339 label = { t ( "admin-panel-users-edit:inputs.password.label" ) }
340340 />
341341 </ Grid >
342342
343- < Grid item xs = { 12 } >
343+ < Grid size = { { xs : 12 } } >
344344 < FormTextInput < ChangeUserPasswordFormData >
345345 name = "passwordConfirmation"
346346 label = { t (
@@ -350,7 +350,7 @@ function FormChangePasswordUser() {
350350 />
351351 </ Grid >
352352
353- < Grid item xs = { 12 } >
353+ < Grid size = { { xs : 12 } } >
354354 < ChangePasswordUserFormActions />
355355 < Box ml = { 1 } component = "span" >
356356 < Button
0 commit comments