Skip to content

Commit

Permalink
refactor: MessageTextInput - change description prop type
Browse files Browse the repository at this point in the history
- JSX.Element | string -> JSX.Element
  • Loading branch information
lokba committed Oct 6, 2022
1 parent 31d78eb commit 1c051a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styles from "./MessageTextInput.module.css";
export type MessageTextInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
type?: "text" | "email" | "password" | "tel" | "number" | "url";
label?: string;
description?: JSX.Element | string;
description?: JSX.Element;
value?: string;
name: string;
errorMessage?: string;
Expand All @@ -17,7 +17,7 @@ const MessageTextInput = ({
className,
label = "",
required = false,
description = "",
description,
value = "",
name,
maxLength,
Expand Down

0 comments on commit 1c051a3

Please sign in to comment.