diff --git a/frontend/src/components/profile/ProfileHeader.tsx b/frontend/src/components/profile/ProfileHeader.tsx index a4f4b09..e1b4483 100644 --- a/frontend/src/components/profile/ProfileHeader.tsx +++ b/frontend/src/components/profile/ProfileHeader.tsx @@ -1,4 +1,5 @@ -import type { ChangeEvent } from "react"; +import { useRef, type ChangeEvent } from "react"; +import { Pencil } from "lucide-react"; type ProfileHeaderProps = { username: string; @@ -20,6 +21,8 @@ export default function ProfileHeader({ onCoverImageChange, onProfileImageChange, }: ProfileHeaderProps) { + const coverInputRef = useRef(null); + const profileInputRef = useRef(null); return ( <>
coverInputRef.current?.click()} + className="absolute bottom-4 right-4 z-20 cursor-pointer rounded-full bg-white px-4 py-2 text-sm text-gray-700 shadow-sm hover:bg-gray-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900 dark:bg-[#242321] dark:text-gray-200 dark:hover:bg-[#35322e] dark:focus-visible:outline-white" > - Change - + Change cover image +
- +

{username}