| | |
| | | MenuItem, |
| | | FormHelperText, |
| | | CircularProgress, |
| | | LinearProgress, |
| | | } from '@mui/material'; |
| | | import { updateUserInfo } from '@/api/auth'; |
| | | import avatar from '/avatar.jpg' |
| | |
| | | } |
| | | |
| | | return ( |
| | | <Box |
| | | sx={{ |
| | | p: 3, |
| | | flex: 1, |
| | | overflow: 'auto', |
| | | }} |
| | | > |
| | | <Box sx={{ |
| | | position: 'relative', |
| | | p: 3, |
| | | flex: 1, |
| | | overflow: 'auto', |
| | | }}> |
| | | {!userInfo && ( |
| | | <LinearProgress |
| | | sx={{ |
| | | height: "2px", |
| | | position: 'absolute', |
| | | top: 0, |
| | | left: 0, |
| | | right: 0, |
| | | }} |
| | | /> |
| | | )} |
| | | {/* https://github.com/themeselection/materio-mui-nextjs-admin-template-free/blob/main/javascript-version/src/views/account-settings/account/AccountDetails.jsx */} |
| | | <form onSubmit={handleSubmit(onSubmit)} noValidate> |
| | | <Stack |