From b1c251290850e36cfd21043fb3ab76e71941c864 Mon Sep 17 00:00:00 2001 From: jeffa-block <233853744+jeffa-block@users.noreply.github.com> Date: Fri, 27 Mar 2026 08:22:59 +1100 Subject: [PATCH] fix: replace any with proper SVG types in icon components (#7873) --- ui/desktop/src/components/icons/ChevronRight.tsx | 6 +++--- ui/desktop/src/components/icons/Geese.tsx | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ui/desktop/src/components/icons/ChevronRight.tsx b/ui/desktop/src/components/icons/ChevronRight.tsx index 9aadad79..4e91907f 100644 --- a/ui/desktop/src/components/icons/ChevronRight.tsx +++ b/ui/desktop/src/components/icons/ChevronRight.tsx @@ -1,7 +1,7 @@ -interface Props { +import React from 'react'; + +interface Props extends React.ComponentPropsWithoutRef<'svg'> { className?: string; - // eslint-disable-next-line - [key: string]: any; // This will allow any other SVG props to pass through } export function ChevronRight({ className = '', ...props }: Props) { diff --git a/ui/desktop/src/components/icons/Geese.tsx b/ui/desktop/src/components/icons/Geese.tsx index a74ea1c1..272859ac 100644 --- a/ui/desktop/src/components/icons/Geese.tsx +++ b/ui/desktop/src/components/icons/Geese.tsx @@ -1,7 +1,6 @@ -interface Props { - // eslint-disable-next-line - [key: string]: any; // This will allow any other SVG props to pass through -} +import React from 'react'; + +type Props = React.ComponentPropsWithoutRef<'svg'>; export function Geese({ ...props }: Props) { return (