1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 04:30:31 +09:00

fix: more alternative names

This commit is contained in:
uetchy 2019-08-02 16:27:19 +09:00
parent 72a70fe1a4
commit c6d9b157c8
2 changed files with 11 additions and 2 deletions

View File

@ -7,7 +7,11 @@ export default function NpmCard({ name }) {
const lowerCase = name.toLowerCase()
return (
<Card title="npm" key={lowerCase} nameList={[lowerCase]}>
<Card
title="npm"
key={lowerCase}
nameList={[lowerCase]}
alternativeList={[`${lowerCase}-js`]}>
{(name) => (
<>
<DedicatedAvailability

View File

@ -2,10 +2,15 @@ import React from 'react'
import { FaPython } from 'react-icons/fa'
import { Card } from '../Cards'
import { DedicatedAvailability } from '../Availability'
import { capitalize } from '../../util/text'
export default function PypiCard({ name }) {
return (
<Card title="PyPI" key={name} nameList={[name]}>
<Card
title="PyPI"
key={name}
nameList={[name]}
alternativeList={[`Py${capitalize(name)}`]}>
{(name) => (
<DedicatedAvailability
name={name}