refactor: merge to single file

This commit is contained in:
lleohao
2024-09-07 14:07:05 +00:00
parent e44dbd0fa4
commit 1b0760f5af
85 changed files with 452 additions and 591 deletions

View File

@ -9,7 +9,7 @@ import { notifications } from "@mantine/notifications";
import { useTranslation } from "react-i18next";
export default function ChangePassword() {
const { t } = useTranslation("user");
const { t } = useTranslation();
const [opened, { open, close }] = useDisclosure(false);
return (
@ -53,7 +53,7 @@ interface ChangePasswordFormProps {
onClose?: () => void;
}
function ChangePasswordForm({ onClose }: ChangePasswordFormProps) {
const { t } = useTranslation("user");
const { t } = useTranslation();
const [isLoading, setIsLoading] = useState(false);
const form = useForm<FormValues>({