@@ -2,14 +2,14 @@ import { Box, Text, Link, HStack, Avatar, Center } from '@chakra-ui/react'
2
2
import NextLink from 'next/link'
3
3
import { contributors } from '@data/contributors'
4
4
5
- interface AuthorProps {
5
+ interface ContributorProps {
6
6
handle : string
7
7
avatarSize ?: string
8
8
}
9
9
10
- export function Author ( { handle, avatarSize } : AuthorProps ) {
11
- const author = contributors [ handle ]
12
- if ( ! author ) {
10
+ export function Contributor ( { handle, avatarSize } : ContributorProps ) {
11
+ const contrib = contributors [ handle ]
12
+ if ( ! contrib ) {
13
13
return null
14
14
}
15
15
@@ -18,27 +18,27 @@ export function Author({ handle, avatarSize }: AuthorProps) {
18
18
< Center width = { 40 } >
19
19
< Avatar
20
20
size = { avatarSize }
21
- name = { author . displayName }
22
- src = { author . avatarUrl }
21
+ name = { contrib . displayName }
22
+ src = { contrib . avatarUrl }
23
23
/>
24
24
</ Center >
25
25
< Box >
26
- { author . moreInfoUrl && (
26
+ { contrib . moreInfoUrl && (
27
27
< Link
28
28
as = { NextLink }
29
- href = { author . moreInfoUrl }
29
+ href = { contrib . moreInfoUrl }
30
30
passHref
31
31
isExternal
32
32
textDecoration = "underline"
33
33
>
34
- < Text fontSize = { 18 } > { author . displayName } </ Text >
34
+ < Text fontSize = { 18 } > { contrib . displayName } </ Text >
35
35
</ Link >
36
36
) }
37
- { ! author . moreInfoUrl && < Text > { author . displayName } </ Text > }
37
+ { ! contrib . moreInfoUrl && < Text > { contrib . displayName } </ Text > }
38
38
39
- { author . about && (
39
+ { contrib . about && (
40
40
< Box mt = { 2 } maxWidth = "xl" >
41
- < Text fontSize = { 14 } > { author . about } </ Text >
41
+ < Text fontSize = { 14 } > { contrib . about } </ Text >
42
42
</ Box >
43
43
) }
44
44
</ Box >
0 commit comments