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

fix: remove spectrum

This commit is contained in:
uetchy 2022-04-21 14:26:44 +09:00
parent d85e4b24bf
commit 0db775f3b4
4 changed files with 1 additions and 37 deletions

View File

@ -53,7 +53,6 @@ const supportedProviders: Record<string, React.ReactNode> = {
reddit: <FaReddit />,
// instagram: <FaInstagram />,
slack: <FaSlack />,
// spectrum: <SpectrumIcon />,
heroku: <DiHeroku />,
now: <NowIcon />,
netlify: <NetlifyIcon />,

View File

@ -27,7 +27,6 @@ import PypiCard from './providers/PyPI';
import RubyGemsCard from './providers/RubyGems';
import S3Card from './providers/S3';
import SlackCard from './providers/Slack';
// import SpectrumCard from './providers/Spectrum';
import SubredditCard from './providers/Subreddit';
import TwitterCard from './providers/Twitter';
import VercelCard from './providers/Vercel';
@ -61,7 +60,6 @@ const Index: React.FC<{ query: string }> = ({ query }) => {
<ModLandCard query={query} />
<SlackCard query={query} />
{/* <InstagramCard query={query} /> */}
{/* <SpectrumCard query={query} /> */}
<SubredditCard query={query} />
<S3Card query={query} />
<FirebaseCard query={query} />

View File

@ -1,33 +0,0 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Card, Repeater, DedicatedAvailability } from '../core';
import { SpectrumIcon } from '../../Icons';
import { normalize } from '../../../util/text';
const SpectrumCard: React.FC<{ query: string }> = ({ query }) => {
const { t } = useTranslation();
const normalizedQuery = normalize(query);
const names = [normalizedQuery];
return (
<Card title={t('providers.spectrum')}>
<Repeater items={names}>
{(name) => (
<>
<DedicatedAvailability
name={name}
service="spectrum"
message="Create Community"
link="https://spectrum.chat/new/community"
messageIfTaken="See community in Spectrum"
linkIfTaken={`https://spectrum.chat/${name}`}
icon={<SpectrumIcon />}
/>
</>
)}
</Repeater>
</Card>
);
};
export default SpectrumCard;

View File

@ -5,7 +5,7 @@ import XHR from 'i18next-xhr-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
const TRANSLATION_VERSION = '12';
const TRANSLATION_VERSION = '13';
i18n
.use(Backend)