@@ -19,7 +19,6 @@ interface ProfileCardProps {
19
19
20
20
export default function ProfileCard ( { userData, isLoading, error } : ProfileCardProps ) {
21
21
const [ isModalOpen , setModalIsOpen ] = useState < boolean | undefined > ( false )
22
- console . log ( userData )
23
22
24
23
const openModal = ( ) => {
25
24
setModalIsOpen ( true )
@@ -31,35 +30,39 @@ export default function ProfileCard({ userData, isLoading, error }: ProfileCardP
31
30
32
31
return (
33
32
< >
34
- < Tooltip
35
- showArrow
36
- offset = { - 150 }
37
- crossOffset = { - 50 }
38
- placement = "right"
39
- content = {
40
- < div className = "px-1 py-2" >
41
- < div className = "font-bold text-small" > Do you want to see my Skills?</ div >
42
- < div className = "text-tiny" > Okay, let's click</ div >
43
- </ div >
44
- }
45
- classNames = { {
46
- base : [ 'before:bg-neutral-400 dark:before:bg-white' ] ,
47
- content : [
48
- 'py-2 px-4 shadow-xl' ,
49
- 'text-black bg-gradient-to-br from-white to-neutral-400'
50
- ]
51
- } }
52
- >
53
- < Card isPressable isHoverable className = "flex w-full mb-4" onPress = { openModal } >
54
- < Skeleton isLoaded = { ! isLoading } className = "w-full h-full" >
33
+ < Skeleton isLoaded = { ! isLoading } className = "w-full h-full rounded-large" >
34
+ < Tooltip
35
+ showArrow
36
+ offset = { - 150 }
37
+ crossOffset = { - 50 }
38
+ placement = "right"
39
+ content = {
40
+ < div className = "px-1 py-2" >
41
+ < div className = "font-bold text-small" >
42
+ Do you want to see my Skills?
43
+ </ div >
44
+ < div className = "text-tiny" > Okay, let's click</ div >
45
+ </ div >
46
+ }
47
+ classNames = { {
48
+ base : [ 'before:bg-neutral-400 dark:before:bg-white' ] ,
49
+ content : [
50
+ 'py-2 px-4 shadow-xl' ,
51
+ 'text-black bg-gradient-to-br from-white to-neutral-400'
52
+ ]
53
+ } }
54
+ >
55
+ < Card isPressable isHoverable className = "flex w-full mb-4" onPress = { openModal } >
55
56
< div className = "flex items-center justify-center justify-col mt-2" >
56
- < Avatar
57
- isBordered
58
- color = "success"
59
- radius = "full"
60
- className = "w-32 h-32 mb-4"
61
- src = { userData ?. avatar_url || '' }
62
- />
57
+ { userData && (
58
+ < Avatar
59
+ isBordered
60
+ color = "success"
61
+ radius = "full"
62
+ className = "w-32 h-32 mb-4 text-large "
63
+ src = { userData ?. avatar_url }
64
+ />
65
+ ) }
63
66
</ div >
64
67
< CardHeader className = "items-center justify-center justify-col" >
65
68
< div className = "flex flex-col items-center justify-center gap-1" >
@@ -94,9 +97,9 @@ export default function ProfileCard({ userData, isLoading, error }: ProfileCardP
94
97
< p className = "text-default-400 text-small" > Followers</ p >
95
98
</ div >
96
99
</ CardFooter >
97
- </ Skeleton >
98
- </ Card >
99
- </ Tooltip >
100
+ </ Card >
101
+ </ Tooltip >
102
+ </ Skeleton >
100
103
{ isModalOpen && < ModalSkills onClose = { closeModal } /> }
101
104
</ >
102
105
)
0 commit comments