Skip to content

Commit bf65daa

Browse files
Fix type naming
1 parent f858dc1 commit bf65daa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Form/Error/Error.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { useFormContext } from 'react-hook-form';
33

44
import styles from '../form.module.css';
55

6-
type TextInputProps = {
6+
type FormErrorProps = {
77
name: string;
88
};
99

10-
const FormError = ({ name }: TextInputProps): ReactElement => {
10+
const FormError = ({ name }: FormErrorProps): ReactElement => {
1111
const form = useFormContext();
1212

1313
const error = form.formState.errors[name];

src/components/Form/Submit/Submit.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { ReactElement } from 'react';
22

3-
type TextInputProps = {
3+
type SubmitButtonProps = {
44
title: string;
55
isPending?: boolean;
66
};
77

8-
const SubmitButton = ({ title, isPending }: TextInputProps): ReactElement => {
8+
const SubmitButton = ({ title, isPending }: SubmitButtonProps): ReactElement => {
99
return (
1010
<button type="submit" disabled={isPending}>
1111
{title}

0 commit comments

Comments
 (0)