From 1c051a3b75853e1946e8f1f507ffd64eca18d710 Mon Sep 17 00:00:00 2001 From: kimsanglok Date: Thu, 6 Oct 2022 17:04:08 +0900 Subject: [PATCH] refactor: MessageTextInput - change description prop type - JSX.Element | string -> JSX.Element --- .../components/@common/MessageTextInput/MessageTextInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/@common/MessageTextInput/MessageTextInput.tsx b/frontend/src/components/@common/MessageTextInput/MessageTextInput.tsx index db65c145f..81b923461 100644 --- a/frontend/src/components/@common/MessageTextInput/MessageTextInput.tsx +++ b/frontend/src/components/@common/MessageTextInput/MessageTextInput.tsx @@ -7,7 +7,7 @@ import styles from "./MessageTextInput.module.css"; export type MessageTextInputProps = React.InputHTMLAttributes & { type?: "text" | "email" | "password" | "tel" | "number" | "url"; label?: string; - description?: JSX.Element | string; + description?: JSX.Element; value?: string; name: string; errorMessage?: string; @@ -17,7 +17,7 @@ const MessageTextInput = ({ className, label = "", required = false, - description = "", + description, value = "", name, maxLength,