Skip to content

Commit 721a5ff

Browse files
committed
fix: replace any with User type
1 parent f8559dd commit 721a5ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/components/EditProfileModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState } from "react";
22
import { X, Loader, CheckCircle } from "lucide-react";
33
import axios from "axios";
4+
import type { User } from "../types/User";
45

56
interface EditProfileModalProps {
67
initialValues: {
@@ -10,7 +11,7 @@ interface EditProfileModalProps {
1011
codechefHandle: string;
1112
};
1213
onClose: () => void;
13-
onSuccess: (updatedUser: any) => void;
14+
onSuccess: (updatedUser: User) => void;
1415
}
1516

1617
export default function EditProfileModal({

0 commit comments

Comments
 (0)