mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
className param
This commit is contained in:
@@ -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 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user