Files
NanoKVM-MIRROR/web/src/pages/desktop/menu-phone/settings/change-password.tsx
2024-08-09 19:45:45 +08:00

21 lines
479 B
TypeScript

import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
export const ChangePassword = () => {
const navigate = useNavigate();
const { t } = useTranslation();
function changePassword() {
navigate('/auth/password');
}
return (
<div
className="flex cursor-pointer select-none items-center rounded px-3 py-1.5 hover:bg-neutral-600"
onClick={changePassword}
>
{t('changePassword')}
</div>
);
};