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:
parent
72a70fe1a4
commit
c6d9b157c8
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user