|
|
|
@ -9,7 +9,10 @@ function ChangePassword() {
|
|
|
|
|
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
const navigate = useNavigate()
|
|
|
|
|
const changeUserPassword = useAuthStore((state) => state.changeUserPassword)
|
|
|
|
|
const [changeUserPassword, defaultRoute] = useAuthStore((state) => [
|
|
|
|
|
state.changeUserPassword,
|
|
|
|
|
state.defaultRoute,
|
|
|
|
|
])
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
|
const [form] = Form.useForm()
|
|
|
|
|
|
|
|
|
@ -94,7 +97,7 @@ function ChangePassword() {
|
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
|
{t('Submit')}
|
|
|
|
|
</Button>
|
|
|
|
|
<Button onClick={() => navigate('/account/profile')}>
|
|
|
|
|
<Button onClick={() => navigate(defaultRoute)}>
|
|
|
|
|
{t('Cancel')}
|
|
|
|
|
</Button>
|
|
|
|
|
</Space>
|
|
|
|
|