(slug: string)
| 18 | }; |
| 19 | |
| 20 | export function getContributorBySlug(slug: string): Contributor { |
| 21 | const allContributors = getAllContributors(); |
| 22 | const contributor = allContributors.find( |
| 23 | (contributor) => contributor.login === slug |
| 24 | ); |
| 25 | if (contributor) { |
| 26 | return contributor; |
| 27 | } |
| 28 | notFound(); |
| 29 | } |
| 30 | |
| 31 | // TODO: replace the method when events pages will be done |
| 32 | export async function getContributorConferencesBySlug(slug: string) { |
no test coverage detected