fix: replace any with proper SVG types in icon components (#7873)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user