@@ -5,7 +5,7 @@ import { useAuth } from '@/lib/hooks/useAuth'
55import { Card , CardContent , CardHeader , CardTitle , CardDescription } from '@/components/ui/card'
66import { Badge } from '@/components/ui/badge'
77import { Button } from '@/components/ui/button'
8- import { Avatar , AvatarFallback } from '@/components/ui/avatar'
8+ import { Avatar , AvatarFallback , AvatarImage } from '@/components/ui/avatar'
99import { ContributionGraph } from '@/components/ui/contribution-graph'
1010import { useContributionGraph } from '@/hooks/useContributionGraph'
1111import { usePublicProfileByUsername } from '@/hooks/useProfile'
@@ -149,6 +149,7 @@ export function PublicProfileView({ username }: PublicProfileViewProps) {
149149 < CardHeader >
150150 < div className = "flex flex-col sm:flex-row gap-6 items-start sm:items-center" >
151151 < Avatar className = "w-20 h-20 sm:w-24 sm:h-24" >
152+ { profile . avatar_url && < AvatarImage src = { profile . avatar_url } alt = { getFullName ( ) } /> }
152153 < AvatarFallback className = "text-2xl font-bold bg-gradient-to-br from-blue-500 to-purple-600 text-white" >
153154 { getInitials ( ) }
154155 </ AvatarFallback >
@@ -232,6 +233,7 @@ export function PublicProfileView({ username }: PublicProfileViewProps) {
232233 < CardHeader >
233234 < div className = "flex flex-col sm:flex-row gap-6 items-start sm:items-center" >
234235 < Avatar className = "w-20 h-20 sm:w-24 sm:h-24" >
236+ { profile . avatar_url && < AvatarImage src = { profile . avatar_url } alt = { getFullName ( ) } /> }
235237 < AvatarFallback className = "text-2xl font-bold bg-gradient-to-br from-blue-500 to-purple-600 text-white" >
236238 { getInitials ( ) }
237239 </ AvatarFallback >
0 commit comments