From ce44a5a862642bd1b253d775849fa06fe248948b Mon Sep 17 00:00:00 2001 From: Isaiah Hamilton Date: Tue, 22 Nov 2022 22:14:54 -0500 Subject: [PATCH] chore: update CONTRIBUTING.md --- CONTRIBUTING.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e16868..1e32afd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,11 +32,11 @@ import { FaGithub } from 'react-icons/fa'; import { Card, Repeater, DedicatedAvailability } from '../core'; -const GithubCard: React.FC<{ query: string }> = ({ name }) => { +const GithubCard: React.FC<{ query: string }> = ({ query }) => { const { t } = useTranslation(); - const lowerCase = name.toLowerCase(); + const lowerCase = query.toLowerCase(); - const names = [name]; + const names = [lowerCase]; const moreNames = [ `${lowerCase}hq`, `${lowerCase}-team`, @@ -60,6 +60,8 @@ const GithubCard: React.FC<{ query: string }> = ({ name }) => { ); }; + +export default GithubCard; ``` and add the card to `src/components/cards/index.tsx`: