1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-16 20:20:38 +09:00

feat: add name-rs to github card

This commit is contained in:
uetchy 2020-08-20 00:57:24 +09:00
parent 6771c6d357
commit a31c13e725

View File

@ -4,12 +4,17 @@ import {FaGithub} from 'react-icons/fa';
import {Card, Repeater, DedicatedAvailability} from '../core';
const GithubCard: React.FC<{query: string}> = ({query}) => {
const GithubCard: React.FC<{ query: string }> = ({ query }) => {
const {t} = useTranslation();
const lowerCase = query.toLowerCase();
const names = [query, `${lowerCase}-dev`, `${lowerCase}-team`];
const moreNames = [`${lowerCase}hq`, `${lowerCase}-org`, `${lowerCase}js`];
const names = [query, `${lowerCase}-dev`, `${lowerCase}-org`]
const moreNames = [
`${lowerCase}hq`,
`${lowerCase}-team`,
`${lowerCase}js`,
`${lowerCase}-rs`,
]
return (
<Card title={t('providers.github')}>