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;
|
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) {
|
export function ChevronRight({ className = '', ...props }: Props) {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
interface Props {
|
import React from 'react';
|
||||||
// eslint-disable-next-line
|
|
||||||
[key: string]: any; // This will allow any other SVG props to pass through
|
type Props = React.ComponentPropsWithoutRef<'svg'>;
|
||||||
}
|
|
||||||
|
|
||||||
export function Geese({ ...props }: Props) {
|
export function Geese({ ...props }: Props) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user