From 97c8199629dc3764a5bbe7a9d2b027d8082fb67c Mon Sep 17 00:00:00 2001 From: BFlat Date: Thu, 10 Aug 2023 15:18:27 +0700 Subject: [PATCH] inputs update --- .../src/components/common/Input/Input.tsx | 92 ------------------- .../common/{Input => Inputs}/Input.scss | 0 2 files changed, 92 deletions(-) delete mode 100644 packages/fakeyou.com/src/components/common/Input/Input.tsx rename packages/fakeyou.com/src/components/common/{Input => Inputs}/Input.scss (100%) diff --git a/packages/fakeyou.com/src/components/common/Input/Input.tsx b/packages/fakeyou.com/src/components/common/Input/Input.tsx deleted file mode 100644 index 11dff877a5..0000000000 --- a/packages/fakeyou.com/src/components/common/Input/Input.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import React from "react"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { IconDefinition } from "@fortawesome/fontawesome-svg-core"; -import "./Input.scss"; -import { - default as ReactSelect, - Props as ReactSelectProps, -} from "react-select"; - -interface InputProps extends React.InputHTMLAttributes { - icon?: IconDefinition; - label?: string; - textArea?: boolean; -} - -interface TextAreaProps - extends React.TextareaHTMLAttributes { - label?: string; - textArea?: boolean; -} - -interface SelectProps extends ReactSelectProps { - icon?: IconDefinition; - label?: string; - rounded?: boolean; -} - -export function Input({ label, icon, textArea, ...rest }: InputProps) { - return ( -
- {label && } - -
- {icon && ( - - )} - -
-
- ); -} - -export function TextArea({ label, textArea, ...rest }: TextAreaProps) { - return ( -
- {label && } - -
-