mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 12:30:32 +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()
|
const lowerCase = name.toLowerCase()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card title="npm" key={lowerCase} nameList={[lowerCase]}>
|
<Card
|
||||||
|
title="npm"
|
||||||
|
key={lowerCase}
|
||||||
|
nameList={[lowerCase]}
|
||||||
|
alternativeList={[`${lowerCase}-js`]}>
|
||||||
{(name) => (
|
{(name) => (
|
||||||
<>
|
<>
|
||||||
<DedicatedAvailability
|
<DedicatedAvailability
|
||||||
|
@ -2,10 +2,15 @@ import React from 'react'
|
|||||||
import { FaPython } from 'react-icons/fa'
|
import { FaPython } from 'react-icons/fa'
|
||||||
import { Card } from '../Cards'
|
import { Card } from '../Cards'
|
||||||
import { DedicatedAvailability } from '../Availability'
|
import { DedicatedAvailability } from '../Availability'
|
||||||
|
import { capitalize } from '../../util/text'
|
||||||
|
|
||||||
export default function PypiCard({ name }) {
|
export default function PypiCard({ name }) {
|
||||||
return (
|
return (
|
||||||
<Card title="PyPI" key={name} nameList={[name]}>
|
<Card
|
||||||
|
title="PyPI"
|
||||||
|
key={name}
|
||||||
|
nameList={[name]}
|
||||||
|
alternativeList={[`Py${capitalize(name)}`]}>
|
||||||
{(name) => (
|
{(name) => (
|
||||||
<DedicatedAvailability
|
<DedicatedAvailability
|
||||||
name={name}
|
name={name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user