From 284a9f3a9e418edc0804556ee6af9910e513e66a Mon Sep 17 00:00:00 2001 From: Meliora Ho Date: Sun, 3 Mar 2024 18:11:26 +0000 Subject: [PATCH] Edited Password Input, Heading, and Page dimensions --- compass/components/InputOld.tsx | 42 --------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 compass/components/InputOld.tsx diff --git a/compass/components/InputOld.tsx b/compass/components/InputOld.tsx deleted file mode 100644 index 5997296..0000000 --- a/compass/components/InputOld.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { Icons } from '@/utils/constants'; -import React, { FunctionComponent, InputHTMLAttributes, ReactElement, ReactNode } from 'react'; - -type InputProps = InputHTMLAttributes & { - iconKey?: keyof typeof Icons; // Use keyof typeof to ensure the key exists in Icons - title?: string; // Assuming title is always a string - type?: string; - placeholder?: string; -}; - -const Input: FunctionComponent = ({ iconKey, type, title, placeholder, ...rest }) => { - const IconComponent = iconKey ? Icons[iconKey] : null; - - return ( -
- {title && ( -
- -
- )} -
- {IconComponent && ( - - - - )} - -
-
- ); -}; - -export default Input;