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 (
{label}
diff --git a/app/(auth)/profile/share-profile.tsx b/app/(auth)/profile/share-profile.tsx index 5dd24e3..a83163d 100644 --- a/app/(auth)/profile/share-profile.tsx +++ b/app/(auth)/profile/share-profile.tsx @@ -3,7 +3,7 @@ import { useState, useCallback } from "react"; import { QRCodeSVG } from "qrcode.react"; -export function ShareProfileButton({ userId, shareUrl }: { userId: string; shareUrl: string }) { +export function ShareProfileButton({ userId, shareUrl }: Readonly<{ userId: string; shareUrl: string }>) { const [open, setOpen] = useState(false); const [copied, setCopied] = useState(false); @@ -65,7 +65,6 @@ export function ShareProfileButton({ userId, shareUrl }: { userId: string; share value={shareUrl} size={200} level="M" - includeMargin={false} />
diff --git a/lib/utils.ts b/lib/utils.ts new file mode 100644 index 0000000..e34fb50 --- /dev/null +++ b/lib/utils.ts @@ -0,0 +1 @@ +export { cn } from "@/utils/assets/shadcn";