From cc3e83196c754e0106f2f9b10d3449dab1aac89a Mon Sep 17 00:00:00 2001 From: yawn <69970183+yawn-c111@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:55:46 +0900 Subject: [PATCH 1/2] fix: component names of Input and Textarea --- pkgs/frontend/app/components/CommonInput.tsx | 10 ++++++++++ pkgs/frontend/app/components/CommonTextarea.tsx | 10 ++++++++++ pkgs/frontend/app/components/Input.tsx | 13 ------------- pkgs/frontend/app/components/TextArea.tsx | 13 ------------- pkgs/frontend/app/routes/_index.tsx | 15 --------------- 5 files changed, 20 insertions(+), 41 deletions(-) create mode 100644 pkgs/frontend/app/components/CommonInput.tsx create mode 100644 pkgs/frontend/app/components/CommonTextarea.tsx delete mode 100644 pkgs/frontend/app/components/Input.tsx delete mode 100644 pkgs/frontend/app/components/TextArea.tsx diff --git a/pkgs/frontend/app/components/CommonInput.tsx b/pkgs/frontend/app/components/CommonInput.tsx new file mode 100644 index 0000000..df992c5 --- /dev/null +++ b/pkgs/frontend/app/components/CommonInput.tsx @@ -0,0 +1,10 @@ +import { Input, InputProps } from "@chakra-ui/react"; + +interface CommonInputProps extends Omit { + value: string | number; + onChange: (event: React.ChangeEvent) => void; +} + +export const CommonInput = ({ value, onChange }: CommonInputProps) => { + return ; +}; diff --git a/pkgs/frontend/app/components/CommonTextarea.tsx b/pkgs/frontend/app/components/CommonTextarea.tsx new file mode 100644 index 0000000..5704cad --- /dev/null +++ b/pkgs/frontend/app/components/CommonTextarea.tsx @@ -0,0 +1,10 @@ +import { Textarea, TextareaProps } from "@chakra-ui/react"; + +interface CommonTextAreaProps extends Omit { + value: string; + onChange: (event: React.ChangeEvent) => void; +} + +export const CommonTextArea = ({ value, onChange }: CommonTextAreaProps) => { + return