fix: replace any with proper SVG types in icon components (#7873)

This commit is contained in:
jeffa-block
2026-03-27 08:22:59 +11:00
committed by GitHub
parent 830b77c9f1
commit b1c2512908
2 changed files with 6 additions and 7 deletions
@@ -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) {
+3 -4
View File
@@ -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 (