diff --git a/frontend/src/sections/settings/settings-password.js b/frontend/src/sections/settings/settings-password.js index 8899d98..e022fde 100644 --- a/frontend/src/sections/settings/settings-password.js +++ b/frontend/src/sections/settings/settings-password.js @@ -9,8 +9,14 @@ import { Stack, TextField } from '@mui/material'; +import { useBackendContext } from 'src/contexts/backend-context'; +import { useAlertContext } from 'src/contexts/error-context'; export const SettingsPassword = () => { + + let {httpRequest} = useBackendContext(); + let {setAlert} = useAlertContext(); + const [values, setValues] = useState({ password: '', confirm: '' @@ -26,15 +32,8 @@ export const SettingsPassword = () => { [] ); - const handleSubmit = useCallback( - (event) => { - event.preventDefault(); - }, - [] - ); - return ( -
+ { -