diff --git a/app/(auth)/profile/avatar-upload.tsx b/app/(auth)/profile/avatar-upload.tsx index 27f7e70..99795c2 100644 --- a/app/(auth)/profile/avatar-upload.tsx +++ b/app/(auth)/profile/avatar-upload.tsx @@ -6,7 +6,7 @@ import Image from "next/image"; const initialState: UploadAvatarState = null; -export function AvatarUpload({ avatarUrl }: { avatarUrl: string | null }) { +export function AvatarUpload({ avatarUrl }: Readonly<{ avatarUrl: string | null }>) { const [state, action, pending] = useActionState( uploadAvatarAction, initialState, diff --git a/app/(auth)/profile/editable-name.tsx b/app/(auth)/profile/editable-name.tsx index 5022784..f5546b0 100644 --- a/app/(auth)/profile/editable-name.tsx +++ b/app/(auth)/profile/editable-name.tsx @@ -11,7 +11,7 @@ import { updateNameAction, type UpdateNameState } from "./actions"; const initialState: UpdateNameState = null; -export function EditableName({ currentName }: { currentName: string }) { +export function EditableName({ currentName }: Readonly<{ currentName: string }>) { const [editing, setEditing] = useState(false); const [state, action, pending] = useActionState( updateNameAction, diff --git a/app/(auth)/profile/page.tsx b/app/(auth)/profile/page.tsx index b0f4972..18947ed 100644 --- a/app/(auth)/profile/page.tsx +++ b/app/(auth)/profile/page.tsx @@ -115,12 +115,12 @@ function DetailRow({ value, mono, badge, -}: { +}: Readonly<{ label: string; value: string; mono?: boolean; badge?: "green" | "yellow"; -}) { +}>) { return (