This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace primeicons with react-icons (#823)
* installed react-icons * successfully moved to react-icons from prime icons * Dollar Icon Added * graduation hat icon added
- Loading branch information
1 parent
7e167b2
commit 0eeb9da
Showing
10 changed files
with
173 additions
and
26,737 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { | ||
FaFacebook, | ||
FaLink, | ||
FaAndroid, | ||
FaApple, | ||
FaDiscord, | ||
FaGithub, | ||
FaMicrosoft, | ||
FaPaypal, | ||
FaSlack, | ||
FaTwitter, | ||
FaVimeo, | ||
FaYoutube, | ||
FaEnvelope, | ||
FaInstagram, | ||
FaLinkedin, | ||
FaTwitch, | ||
FaDev, | ||
FaGlobe, | ||
FaBook, | ||
FaDollarSign, | ||
FaGraduationCap, | ||
} from 'react-icons/fa' | ||
import { SiCodewars, SiHashnode } from 'react-icons/si' | ||
import { RiSendPlaneFill } from 'react-icons/ri' | ||
|
||
function GetIcons({ iconName }) { | ||
switch (iconName) { | ||
case 'facebook': | ||
return <FaFacebook /> | ||
case 'link': | ||
return <FaLink /> | ||
case 'android': | ||
return <FaAndroid /> | ||
case 'apple': | ||
return <FaApple /> | ||
case 'discord': | ||
return <FaDiscord /> | ||
case 'github': | ||
return <FaGithub /> | ||
case 'microsoft': | ||
return <FaMicrosoft /> | ||
case 'paypal': | ||
return <FaPaypal /> | ||
case 'slack': | ||
return <FaSlack /> | ||
case 'twitter': | ||
return <FaTwitter /> | ||
case 'vimeo': | ||
return <FaVimeo /> | ||
case 'youtube': | ||
return <FaYoutube /> | ||
case 'envelope': | ||
return <FaEnvelope /> | ||
case 'instagram': | ||
return <FaInstagram /> | ||
case 'linkedin': | ||
return <FaLinkedin /> | ||
case 'twitch': | ||
return <FaTwitch /> | ||
case 'dev.to': | ||
return <FaDev /> | ||
case 'globe': | ||
return <FaGlobe /> | ||
case 'book': | ||
return <FaBook /> | ||
case 'send': | ||
return <RiSendPlaneFill /> | ||
case 'codewars': | ||
return <SiCodewars /> | ||
case 'hashnode': | ||
return <SiHashnode /> | ||
case 'dollar': | ||
return <FaDollarSign /> | ||
case 'graduation-hat': | ||
return <FaGraduationCap /> | ||
default: | ||
return <FaGlobe /> | ||
} | ||
} | ||
|
||
GetIcons.propTypes = { | ||
iconName: PropTypes.string, | ||
} | ||
|
||
export default GetIcons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters