From c7d7a129b96920ee54f7cbd1b4fa95cf5bbd3054 Mon Sep 17 00:00:00 2001 From: Tania Gutierrez Date: Wed, 13 Mar 2024 21:53:06 -0400 Subject: [PATCH] chore: Moved Icon definitions to icon.tsx --- app/components/file-card.tsx | 75 +----------------------------------- app/components/icons.tsx | 47 ++++++++++++++++++++++ app/components/ui/input.tsx | 2 +- 3 files changed, 50 insertions(+), 74 deletions(-) diff --git a/app/components/file-card.tsx b/app/components/file-card.tsx index 263edf6..7e6717e 100644 --- a/app/components/file-card.tsx +++ b/app/components/file-card.tsx @@ -1,3 +1,5 @@ +import { FolderIcon, MoreIcon, RecentIcon } from "./icons"; + export enum FileTypes { Folder = "FOLDER", Document = "DOCUMENT", @@ -33,76 +35,3 @@ export const FileCard = ({ type, fileName, createdAt, size }: FileCardProps) => ); }; - -const FolderIcon = ({ className }: { className?: string }) => { - return ( - - - - ); -}; - -const MoreIcon = ({ className }: { className?: string }) => { - return ( - - - - - - ); -}; - -const RecentIcon = ({ className }: { className?: string }) => { - return ( - - - - - - - - - - - - ); -}; diff --git a/app/components/icons.tsx b/app/components/icons.tsx index 64dd2af..d2a51e8 100644 --- a/app/components/icons.tsx +++ b/app/components/icons.tsx @@ -542,3 +542,50 @@ export const ChevronDownIcon = ({ className }: { className?: string }) => { ); }; + +export const FolderIcon = ({ className }: { className?: string }) => { + return ( + + + + ); +}; + +export const RecentIcon = ({ className }: { className?: string }) => { + return ( + + + + + + + + + + + + ); +}; \ No newline at end of file diff --git a/app/components/ui/input.tsx b/app/components/ui/input.tsx index 8ea96d2..0bcde50 100644 --- a/app/components/ui/input.tsx +++ b/app/components/ui/input.tsx @@ -5,7 +5,7 @@ import { EyeOpenIcon, EyeNoneIcon } from "@radix-ui/react-icons" export interface InputProps extends React.InputHTMLAttributes { - fullWidth: boolean, + fullWidth?: boolean, leftIcon?: React.ReactNode }