className param

This commit is contained in:
Oliver Bryan
2026-01-16 22:44:25 +00:00
parent 2842d21ed5
commit cfab272294

View File

@@ -48,6 +48,7 @@ export default function Avatar({
size, size,
textClass = "text-xs", textClass = "text-xs",
strong = false, strong = false,
className,
}: { }: {
avatarURL?: string | null; avatarURL?: string | null;
name?: string; name?: string;
@@ -55,6 +56,7 @@ export default function Avatar({
size?: number; size?: number;
textClass?: string; textClass?: string;
strong?: boolean; strong?: boolean;
className?: string;
}) { }) {
// if the username matches the authed user, use their avatarURL and name (avoid stale data) // if the username matches the authed user, use their avatarURL and name (avoid stale data)
const { user } = useSession(); const { user } = useSession();
@@ -75,6 +77,7 @@ export default function Avatar({
"transition-colors", "transition-colors",
`w-${size || 6}`, `w-${size || 6}`,
`h-${size || 6}`, `h-${size || 6}`,
className,
)} )}
> >
{avatarURL ? ( {avatarURL ? (