Skip to content

Commit aceaaf2

Browse files
committed
Code rabbit fixes v2
1 parent 5dada81 commit aceaaf2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/src/components/pages/ResetPasswordPage.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect } from "react";
2-
import type { ReactNode, FormEvent } from "react";
2+
import type { ReactNode, FormEvent, ComponentPropsWithoutRef, ElementType } from "react";
33
import { motion } from "framer-motion";
44
import { useNavigate } from 'react-router-dom';
55
import { toast} from "react-hot-toast";
@@ -14,11 +14,10 @@ interface AuthLayoutProps {
1414
children: ReactNode;
1515
}
1616

17-
interface InputFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
18-
icon: React.ElementType;
17+
interface InputFieldProps extends ComponentPropsWithoutRef<'input'> {
18+
icon: ElementType;
1919
}
2020

21-
2221
const AuthLayout = ({ children }: AuthLayoutProps) => (
2322
<div className="min-h-screen bg-gray-950 flex items-center justify-center p-4">
2423
<motion.div

0 commit comments

Comments
 (0)