Merge pull request #926 from LikiosSedo/fix/replace-any-types-contact-form

fix: replace `any` types with proper types in contact form component
This commit is contained in:
Rohan Verma 2026-03-24 12:55:18 -07:00 committed by GitHub
commit 3b3fca0769
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,7 +161,7 @@ export const FeatureIconContainer = ({
); );
}; };
export const Grid = ({ pattern, size }: { pattern?: number[][]; size?: number }) => { export const Grid = ({ pattern, size }: { pattern?: [number, number][]; size?: number }) => {
const p = pattern ?? [ const p = pattern ?? [
[9, 3], [9, 3],
[8, 5], [8, 5],
@ -185,7 +185,7 @@ export const Grid = ({ pattern, size }: { pattern?: number[][]; size?: number })
); );
}; };
export function GridPattern({ width, height, x, y, squares, ...props }: any) { export function GridPattern({ width, height, x, y, squares, ...props }: React.ComponentProps<"svg"> & { width: number; height: number; x: string | number; y: string | number; squares?: [number, number][] }) {
const patternId = useId(); const patternId = useId();
return ( return (
@ -205,7 +205,7 @@ export function GridPattern({ width, height, x, y, squares, ...props }: any) {
<rect width="100%" height="100%" strokeWidth={0} fill={`url(#${patternId})`} /> <rect width="100%" height="100%" strokeWidth={0} fill={`url(#${patternId})`} />
{squares && ( {squares && (
<svg aria-hidden="true" x={x} y={y} className="overflow-visible"> <svg aria-hidden="true" x={x} y={y} className="overflow-visible">
{squares.map(([x, y]: any, idx: number) => ( {squares.map(([x, y]: [number, number], idx: number) => (
<rect <rect
strokeWidth="0" strokeWidth="0"
key={`${x}-${y}-${idx}`} key={`${x}-${y}-${idx}`}