Skip to content

Commit f2e8853

Browse files
committed
Add tooltip for funder names
1 parent d1f9131 commit f2e8853

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/components/funders.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import {
33
Container,
44
Image,
55
Text,
6-
UnorderedList,
7-
ListItem,
86
Link,
97
Grid,
108
GridItem,
9+
Tooltip,
1110
} from '@chakra-ui/react'
1211
import React from 'react'
1312
import { Funders as data } from '@/data/funders'
@@ -36,20 +35,21 @@ export const Funders = () => {
3635
justifyContent='center'
3736
>
3837
{funders.map((funder, index) => (
39-
<GridItem
40-
as={Link}
41-
href={funder.url}
42-
key={index}
43-
display='flex'
44-
alignItems='center'
45-
justifyContent='center'
46-
borderRight={
47-
index < funders.length - 1 ? '1px solid #ccc' : 'none'
48-
}
49-
pr={4}
50-
>
51-
<Image maxH={20} src={funder.logo} alt={funder.name} />
52-
</GridItem>
38+
<Tooltip key={index} label={funder.name}>
39+
<GridItem
40+
as={Link}
41+
href={funder.url}
42+
display='flex'
43+
alignItems='center'
44+
justifyContent='center'
45+
borderRight={
46+
index < funders.length - 1 ? '1px solid #ccc' : 'none'
47+
}
48+
pr={4}
49+
>
50+
<Image maxH={20} src={funder.logo} alt={funder.name} />
51+
</GridItem>
52+
</Tooltip>
5353
))}
5454
</Grid>
5555
</Box>

0 commit comments

Comments
 (0)