refactor: return types for hooks

This commit is contained in:
2025-08-14 16:15:10 +04:00
parent c3b0da1e0d
commit 28004dc2a0
7 changed files with 57 additions and 11 deletions

View File

@ -10,7 +10,7 @@ type Props = {
};
type FormType = {
name?: string;
name: string;
};
const EnterNameModal = ({
@ -28,7 +28,7 @@ const EnterNameModal = ({
});
const onSubmit = (values: FormType) => {
innerProps.onComplete(values.name!);
innerProps.onComplete(values.name);
context.closeModal(id);
};