mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 12:30:32 +09:00
fix: sync welcome pane
This commit is contained in:
parent
1b1be2f9f8
commit
96dd54af06
@ -1,39 +1,36 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Link } from 'react-router-dom';
|
import { DiHeroku } from 'react-icons/di';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
FaMapSigns,
|
|
||||||
FaGithub,
|
|
||||||
FaGitlab,
|
|
||||||
FaNpm,
|
|
||||||
FaPython,
|
|
||||||
FaGem,
|
|
||||||
FaLinux,
|
|
||||||
FaAppStore,
|
|
||||||
FaInstagram,
|
|
||||||
FaTwitter,
|
|
||||||
FaSlack,
|
|
||||||
FaAws,
|
FaAws,
|
||||||
|
FaGithub,
|
||||||
|
FaGithubAlt,
|
||||||
|
FaGitlab,
|
||||||
|
FaInstagram,
|
||||||
FaJsSquare,
|
FaJsSquare,
|
||||||
FaBuilding,
|
FaLinux,
|
||||||
|
FaPython,
|
||||||
|
FaSlack,
|
||||||
|
FaTwitter,
|
||||||
} from 'react-icons/fa';
|
} from 'react-icons/fa';
|
||||||
import { IoIosBeer } from 'react-icons/io';
|
import { IoIosBeer, IoMdAppstore } from 'react-icons/io';
|
||||||
import { DiRust, DiHeroku, DiFirebase } from 'react-icons/di';
|
import { MdDomain } from 'react-icons/md';
|
||||||
|
import { RiBuilding2Fill, RiNpmjsFill } from 'react-icons/ri';
|
||||||
import { SpectrumIcon, NowIcon, NetlifyIcon, OcamlIcon } from './Icons';
|
import { SiAppstore, SiFirebase, SiRubygems, SiRust } from 'react-icons/si';
|
||||||
import { mobile } from '../util/css';
|
import { Link } from 'react-router-dom';
|
||||||
|
import styled from 'styled-components';
|
||||||
import { sendGettingStartedEvent } from '../util/analytics';
|
import { sendGettingStartedEvent } from '../util/analytics';
|
||||||
|
import { mobile } from '../util/css';
|
||||||
|
import { NetlifyIcon, NowIcon, OcamlIcon, SpectrumIcon } from './Icons';
|
||||||
|
|
||||||
const supportedProviders: Record<string, React.ReactNode> = {
|
const supportedProviders: Record<string, React.ReactNode> = {
|
||||||
domains: <FaMapSigns />,
|
domains: <MdDomain />,
|
||||||
github: <FaGithub />,
|
github: <FaGithub />,
|
||||||
gitlab: <FaGitlab />,
|
gitlab: <FaGitlab />,
|
||||||
npm: <FaNpm />,
|
npm: <RiNpmjsFill />,
|
||||||
rust: <DiRust />,
|
rust: <SiRust />,
|
||||||
pypi: <FaPython />,
|
pypi: <FaPython />,
|
||||||
rubygems: <FaGem />,
|
rubygems: <SiRubygems />,
|
||||||
ocaml: <OcamlIcon />,
|
ocaml: <OcamlIcon />,
|
||||||
homebrew: <IoIosBeer />,
|
homebrew: <IoIosBeer />,
|
||||||
linux: <FaLinux />,
|
linux: <FaLinux />,
|
||||||
@ -45,11 +42,12 @@ const supportedProviders: Record<string, React.ReactNode> = {
|
|||||||
now: <NowIcon />,
|
now: <NowIcon />,
|
||||||
netlify: <NetlifyIcon />,
|
netlify: <NetlifyIcon />,
|
||||||
s3: <FaAws />,
|
s3: <FaAws />,
|
||||||
firebase: <DiFirebase />,
|
firebase: <SiFirebase />,
|
||||||
jsorg: <FaJsSquare />,
|
jsorg: <FaJsSquare />,
|
||||||
githubSearch: <FaGithub />,
|
githubSearch: <FaGithubAlt />,
|
||||||
appStore: <FaAppStore />,
|
appStore: <SiAppstore />,
|
||||||
nta: <FaBuilding />,
|
playStore: <IoMdAppstore />,
|
||||||
|
nta: <RiBuilding2Fill />,
|
||||||
};
|
};
|
||||||
|
|
||||||
const Welcome: React.FC = () => {
|
const Welcome: React.FC = () => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
|
||||||
import useFetch from 'fetch-suspense';
|
import useFetch from 'fetch-suspense';
|
||||||
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaBuilding, FaInfoCircle } from 'react-icons/fa';
|
import { FaInfoCircle } from 'react-icons/fa';
|
||||||
|
import { RiBuilding2Fill } from 'react-icons/ri';
|
||||||
import { Card, Result } from '../core';
|
import { Card, Result } from '../core';
|
||||||
|
|
||||||
const Search: React.FC<{ query: string }> = ({ query }) => {
|
const Search: React.FC<{ query: string }> = ({ query }) => {
|
||||||
@ -21,7 +21,7 @@ const Search: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
<Result
|
<Result
|
||||||
title={app.name}
|
title={app.name}
|
||||||
message={`Phonetic: ${app.phoneticName}`}
|
message={`Phonetic: ${app.phoneticName}`}
|
||||||
icon={<FaBuilding />}
|
icon={<RiBuilding2Fill />}
|
||||||
key={i}
|
key={i}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user