1- import React from 'react'
2- import { SiGithub } from 'react-icons/si'
3- import { SiYcombinator } from 'react-icons/si'
4- import { FaDev } from 'react-icons/fa'
5- import { SiProducthunt } from 'react-icons/si'
6- import { FaReddit , FaMediumM } from 'react-icons/fa'
1+ import { CgIndieHackers } from 'react-icons/cg'
2+ import { FaDev , FaFreeCodeCamp , FaMediumM , FaReddit } from 'react-icons/fa'
73import { HiTicket } from 'react-icons/hi'
4+ import { SiGithub , SiProducthunt , SiYcombinator } from 'react-icons/si'
85import HashNodeIcon from 'src/assets/icon_hashnode.png'
96import LobstersIcon from 'src/assets/icon_lobsters.png'
10- import { FaFreeCodeCamp } from 'react-icons/fa'
11- import { CgIndieHackers } from 'react-icons/cg'
127import {
13- HackernewsCard ,
14- ProductHuntCard ,
15- IndiehackersCard ,
16- FreecodecampCard ,
178 ConferencesCard ,
9+ DevtoCard ,
10+ FreecodecampCard ,
1811 GithubCard ,
19- MediumCard ,
12+ HackernewsCard ,
2013 HashnodeCard ,
14+ IndiehackersCard ,
2115 LobstersCard ,
22- DevtoCard ,
23- RedditCard ,
16+ MediumCard ,
17+ ProductHuntCard ,
18+ RedditCard
2419} from 'src/features/cards'
25- import { CardPropsType } from 'src/types'
20+ import { SupportedCardType } from 'src/types'
2621
2722// Keys
2823export const ANALYTICS_ENDPOINT = process . env . REACT_APP_AMPLITUDE_URL as string
@@ -71,23 +66,15 @@ export const SUPPORTED_SEARCH_ENGINES = [
7166 url : 'https://www.startpage.com/sp/search?query=' ,
7267 } ,
7368]
74-
75- export type SupportedCard = {
76- value : string
77- icon : React . ReactNode
78- analyticsTag : string
79- label : string
80- link : string
81- component : React . FunctionComponent < CardPropsType >
82- }
83- export const SUPPORTED_CARDS : SupportedCard [ ] = [
69+ export const SUPPORTED_CARDS : SupportedCardType [ ] = [
8470 {
8571 value : 'github' ,
8672 analyticsTag : 'github' ,
8773 label : 'Github repositories' ,
8874 component : GithubCard ,
8975 icon : < SiGithub className = "blockHeaderWhite" /> ,
9076 link : 'https://github.com/' ,
77+ type : 'supported' ,
9178 } ,
9279 {
9380 value : 'hackernews' ,
@@ -96,6 +83,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
9683 label : 'Hackernews' ,
9784 component : HackernewsCard ,
9885 link : 'https://news.ycombinator.com/' ,
86+ type : 'supported' ,
9987 } ,
10088 {
10189 value : 'conferences' ,
@@ -104,6 +92,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
10492 label : 'Upcoming events' ,
10593 component : ConferencesCard ,
10694 link : 'https://confs.tech/' ,
95+ type : 'supported' ,
10796 } ,
10897 {
10998 value : 'devto' ,
@@ -112,6 +101,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
112101 label : 'DevTo' ,
113102 component : DevtoCard ,
114103 link : 'https://dev.to/' ,
104+ type : 'supported' ,
115105 } ,
116106 {
117107 value : 'producthunt' ,
@@ -120,6 +110,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
120110 label : 'Product Hunt' ,
121111 component : ProductHuntCard ,
122112 link : 'https://producthunt.com/' ,
113+ type : 'supported' ,
123114 } ,
124115 {
125116 value : 'reddit' ,
@@ -128,6 +119,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
128119 label : 'Reddit' ,
129120 component : RedditCard ,
130121 link : 'https://reddit.com/' ,
122+ type : 'supported' ,
131123 } ,
132124 {
133125 value : 'lobsters' ,
@@ -136,6 +128,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
136128 label : 'Lobsters' ,
137129 component : LobstersCard ,
138130 link : 'https://lobste.rs/' ,
131+ type : 'supported' ,
139132 } ,
140133 {
141134 value : 'hashnode' ,
@@ -144,6 +137,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
144137 label : 'Hashnode' ,
145138 component : HashnodeCard ,
146139 link : 'https://hashnode.com/' ,
140+ type : 'supported' ,
147141 } ,
148142 {
149143 value : 'freecodecamp' ,
@@ -152,6 +146,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
152146 label : 'FreeCodeCamp' ,
153147 component : FreecodecampCard ,
154148 link : 'https://freecodecamp.com/news' ,
149+ type : 'supported' ,
155150 } ,
156151 {
157152 value : 'indiehackers' ,
@@ -160,6 +155,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
160155 label : 'IndieHackers' ,
161156 component : IndiehackersCard ,
162157 link : 'https://indiehackers.com/' ,
158+ type : 'supported' ,
163159 } ,
164160 {
165161 value : 'medium' ,
@@ -168,6 +164,7 @@ export const SUPPORTED_CARDS: SupportedCard[] = [
168164 label : 'Medium' ,
169165 component : MediumCard ,
170166 link : 'https://medium.com/' ,
167+ type : 'supported' ,
171168 } ,
172169]
173170
0 commit comments