From 9cda192c1b28b7b3b28e289728a7f6e8b9cf39d8 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 2 Sep 2024 20:45:02 -0400 Subject: [PATCH] chore: Update EditIcon props type --- client/src/components/svg/EditIcon.tsx | 61 ++++++++++++-------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/client/src/components/svg/EditIcon.tsx b/client/src/components/svg/EditIcon.tsx index 7adfef0784..21a6b3c31f 100644 --- a/client/src/components/svg/EditIcon.tsx +++ b/client/src/components/svg/EditIcon.tsx @@ -1,37 +1,34 @@ import React from 'react'; import { cn } from '~/utils'; -const EditIcon = React.forwardRef( - ( - props: { - className?: string; - size?: string; - }, - ref, - ) => { - const { className = 'icon-md', size = '1.2em' } = props; - return ( - - - - ); - }, -); +type IconProps = { + className?: string; + size?: string; +}; + +const EditIcon = React.forwardRef((props: IconProps, ref) => { + const { className = 'icon-md', size = '1.2em' } = props; + return ( + + + + ); +}); export default EditIcon;