We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8559dd commit 721a5ffCopy full SHA for 721a5ff
frontend/src/components/EditProfileModal.tsx
@@ -1,6 +1,7 @@
1
import { useState } from "react";
2
import { X, Loader, CheckCircle } from "lucide-react";
3
import axios from "axios";
4
+import type { User } from "../types/User";
5
6
interface EditProfileModalProps {
7
initialValues: {
@@ -10,7 +11,7 @@ interface EditProfileModalProps {
10
11
codechefHandle: string;
12
};
13
onClose: () => void;
- onSuccess: (updatedUser: any) => void;
14
+ onSuccess: (updatedUser: User) => void;
15
}
16
17
export default function EditProfileModal({
0 commit comments