File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
apps/site/components/Common/Partners/PartnerIcon Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
import Skeleton from '@node-core/ui-components/Common/Skeleton' ;
2
+ import Tooltip from '@node-core/ui-components/Common/Tooltip' ;
2
3
import type { ComponentProps , FC } from 'react' ;
3
4
import { cloneElement } from 'react' ;
4
5
@@ -9,16 +10,18 @@ import Button from '../../Button';
9
10
10
11
type ParnetsIconProps = Partners & ComponentProps < typeof Skeleton > ;
11
12
12
- const PartnersIcon : FC < ParnetsIconProps > = ( { href, logo, loading } ) => {
13
+ const PartnersIcon : FC < ParnetsIconProps > = ( { name , href, logo, loading } ) => {
13
14
return (
14
15
< Skeleton loading = { loading } className = "h-9 w-9 p-2" >
15
- < Button kind = "secondary" href = { href } className = { style . partnerIcon } >
16
- { cloneElement ( logo , {
17
- className : 'h-4 w-auto' ,
18
- width : 'auto' ,
19
- height : '16px' ,
20
- } ) }
21
- </ Button >
16
+ < Tooltip content = { name } >
17
+ < Button kind = "secondary" href = { href } className = { style . partnerIcon } >
18
+ { cloneElement ( logo , {
19
+ className : 'h-4 w-auto' ,
20
+ width : 'auto' ,
21
+ height : '16px' ,
22
+ } ) }
23
+ </ Button >
24
+ </ Tooltip >
22
25
</ Skeleton >
23
26
) ;
24
27
} ;
You can’t perform that action at this time.
0 commit comments