Skip to content

Commit 6a5568c

Browse files
authored
ui: add name tooltip for partnerIcon
1 parent 5094798 commit 6a5568c

File tree

1 file changed

+11
-8
lines changed
  • apps/site/components/Common/Partners/PartnerIcon

1 file changed

+11
-8
lines changed

apps/site/components/Common/Partners/PartnerIcon/index.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Skeleton from '@node-core/ui-components/Common/Skeleton';
2+
import Tooltip from '@node-core/ui-components/Common/Tooltip';
23
import type { ComponentProps, FC } from 'react';
34
import { cloneElement } from 'react';
45

@@ -9,16 +10,18 @@ import Button from '../../Button';
910

1011
type 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
};

0 commit comments

Comments
 (0)