Skip to content

Commit

Permalink
Fix type naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nickspaargaren committed Dec 6, 2024
1 parent f858dc1 commit bf65daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/Error/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { useFormContext } from 'react-hook-form';

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

type TextInputProps = {
type FormErrorProps = {
name: string;
};

const FormError = ({ name }: TextInputProps): ReactElement => {
const FormError = ({ name }: FormErrorProps): ReactElement => {
const form = useFormContext();

const error = form.formState.errors[name];
Expand Down
4 changes: 2 additions & 2 deletions src/components/Form/Submit/Submit.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ReactElement } from 'react';

type TextInputProps = {
type SubmitButtonProps = {
title: string;
isPending?: boolean;
};

const SubmitButton = ({ title, isPending }: TextInputProps): ReactElement => {
const SubmitButton = ({ title, isPending }: SubmitButtonProps): ReactElement => {
return (
<button type="submit" disabled={isPending}>
{title}
Expand Down

0 comments on commit bf65daa

Please sign in to comment.