mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
21 lines
479 B
TypeScript
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>
|
|
);
|
|
};
|