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 11import Skeleton from '@node-core/ui-components/Common/Skeleton' ;
2+ import Tooltip from '@node-core/ui-components/Common/Tooltip' ;
23import type { ComponentProps , FC } from 'react' ;
34import { cloneElement } from 'react' ;
45
@@ -9,16 +10,18 @@ import Button from '../../Button';
910
1011type ParnetsIconProps = Partners & ComponentProps < typeof Skeleton > ;
1112
12- const PartnersIcon : FC < ParnetsIconProps > = ( { href, logo, loading } ) => {
13+ const PartnersIcon : FC < ParnetsIconProps > = ( { name , href, logo, loading } ) => {
1314 return (
1415 < 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 >
2225 </ Skeleton >
2326 ) ;
2427} ;
You can’t perform that action at this time.
0 commit comments