react-icons/fa APIs
- FaTwitter
- FaGithub
- FaInstagram
- FaLinkedin
- FaTimes
- FaPlus
- FaFacebookF
- FaSearch
- FaYoutube
- FaFacebook
- FaTrash
- FaHeart
- FaLinkedinIn
- FaBars
- FaEnvelope
- FaStar
- FaPlay
- FaHome
- FaEdit
- FaSun
- FaMoon
- FaUser
- FaGithubAlt
- FaFacebookSquare
- FaArrowRight
- FaCheck
- FaTwitterSquare
- FaAngleRight
- FaInfoCircle
- FaMapMarkerAlt
- FaArrowLeft
- FaPen
- FaTrashAlt
- FaShoppingCart
- FaGithubSquare
- FaCheckCircle
- FaDownload
- FaCaretDown
- FaChevronRight
- FaCog
- FaCode
- FaDev
- FaDribbble
- FaLocationArrow
- FaExternalLinkAlt
- FaAngleDown
- FaArrowUp
- FaSignOutAlt
- FaTags
- FaQuoteLeft
- FaPause
- FaChevronLeft
- FaChevronDown
- FaReact
- FaFolderOpen
- FaCircle
- FaAngleLeft
- FaCompass
- FaAlignRight
- FaMinus
- FaBoxOpen
- FaLink
- FaUsers
- FaGoogle
- FaTwitch
- FaRss
- FaSpotify
- FaCrown
- FaLock
- FaCopyright
- FaRegTrashAlt
- FaUserAlt
- FaRegStar
- FaPhone
- FaMapMarkedAlt
- FaRegCircle
- FaVolumeUp
- FaDiscord
- FaUserCircle
- FaList
- FaStackOverflow
- FaFreeCodeCamp
- FaMicrophone
- FaRedo
- FaClipboard
- FaChevronUp
- FaLongArrowAltRight
- FaAngleDoubleRight
- FaKey
- FaCubes
- FaBan
- FaMediumM
- FaPinterest
- FaVideo
- FaDribbbleSquare
- FaComment
- FaBellSlash
- FaRegBuilding
- FaSlack
- FaItunesNote
- FaBox
- FaWonSign
- FaAirbnb
- FaDoorOpen
- FaGlobe
- FaBath
- FaParking
- FaWhatsapp
- FaUserInjured
- FaRegPlusSquare
- FaPlayCircle
- FaPauseCircle
- FaVolumeMute
- FaSpinner
- FaRegLightbulb
- FaCcVisa
- FaCcMastercard
- FaCcPaypal
- FaCcAmazonPay
- FaRegHeart
- FaCartArrowDown
- FaCartPlus
- FaPinterestSquare
- FaPaypal
- FaAmazon
- FaShopify
- FaApple
- FaTruck
- FaUndoAlt
- FaRocketchat
- FaWallet
- FaPinterestP
- FaGooglePlay
- FaCaretUp
- FaFilter
- FaCalendarAlt
- FaCodeBranch
- FaExclamationCircle
- FaEye
- FaOsi
- FaRegEdit
- FaMicrophoneAlt
- FaMicrophoneAltSlash
- FaCogs
- FaEllipsisH
- FaEquals
- FaQrcode
- FaAddressBook
- FaServer
- FaFolder
- FaLongArrowAltLeft
- FaSkype
- FaHandHoldingHeart
- FaRegPaperPlane
- FaRegBookmark
- FaInbox
- FaHamburger
- FaSearchLocation
- FaBirthdayCake
- FaUserGraduate
- FaGoogleDrive
- FaPaperPlane
- FaLockOpen
- FaUserFriends
- FaExchangeAlt
- FaEllipsisV
- FaSortAmountDown
- FaSortAmountUp
- FaCaretSquareRight
- FaCaretSquareLeft
- FaColumns
- FaUndo
- FaQuestionCircle
- FaBloggerB
- FaRedditAlien
- FaCodepen
- FaGitlab
- FaBlogger
- FaCameraRetro
- FaTabletAlt
- FaRegNewspaper
- FaRegCalendarAlt
- FaForward
- FaQuoteRight
- FaVoteYea
- FaShareSquare
- FaBehanceSquare
- FaSignInAlt
- FaSkull
- FaReddit
- FaRegSmileBeam
- FaWindowClose
- FaWindowMinimize
- FaWindowMaximize
- FaPaste
- FaStopwatch
- FaStop
- FaSave
- FaFileExport
- FaHandPointer
- FaFile
- FaMapSigns
- FaClipboardCheck
- FaClock
- FaThList
- FaDumbbell
- FaGuitar
- FaNetworkWired
- FaPuzzlePiece
- FaUserEdit
- FaEyeSlash
- FaPhoneAlt
- FaStickyNote
- FaThumbsUp
- FaThumbsDown
- FaArrowCircleUp
- FaLightbulb
- FaBookOpen
- FaRegSquare
- FaItalic
- FaBold
- FaPencilAlt
- FaSlash
- FaShapes
- FaShip
- FaTree
- FaFilePdf
- FaRegArrowAltCircleRight
- FaFileUpload
- FaKeyboard
- FaBehance
- FaGoodreadsG
- FaProductHunt
- FaXing
- FaBolt
OtherRelated APIs
react-icons/fa#FaGoogleDrive JavaScript Examples
The following examples show how to use
react-icons/fa#FaGoogleDrive.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js From rahat-vendor with GNU Affero General Public License v3.0 | 4 votes |
export default function Main() {
const history = useHistory();
const [restorePage, setRestorePage] = useState(false);
const [showModal, setModal] = useState(false);
const [restoreMethod, setRestoreMethod] = useState(null);
const togglePasscodeModal = () => setModal(prev => !prev);
const toggleRestore = () => setRestorePage(prev => !prev);
const setRestoreMthd = mthd => setRestoreMethod(mthd);
const handlePasscodeSave = () => {
togglePasscodeModal();
restoreMethod && history.push(RESTORE_LINK[restoreMethod]);
};
const hasWallet = useCallback(async () => {
const wallet = await DataService.getWallet();
if (wallet != null) {
history.push('/');
}
}, [history]);
useEffect(hasWallet, [hasWallet]);
return (
<>
<div className="item p-2">
<div className="text-center p-3 mb-3">
<img src="/assets/img/brand/logo-512.png" alt="alt" width="200" />
</div>
<h2>राहत अधिकृत पसल</h2>
<p>
राहत कार्यक्रममा भाग लिनु भएकोमा धन्यवाद। कोरोना भाइरसको निषेधाज्ञाबाट पिडितहरुलाई राहतको धेरै खाँचो
छ। देश विदेशका दाताबाट राहत बाडिएको छ। उहाँहरुको सहयोग खेरा नजान यो सिस्टम बनाइएको हो। यो आधुनिक
सिस्टमबाट राहत बाड्न सहज र पारदर्सी हुन्छ। हजुर बिक्रेताको लागि भनेर यो छुटै App बनाइएको हो। यो App
को माध्यमबाट तपाइले राहत लिनेसंग पैसा लिन सक्नुहुने छ।
</p>
<p>आउनुहोस तपाईंलाई Register गरौ। तपाईंको Google Login गर्नुहोस। </p>
<PasscodeModal
showModal={showModal}
togglePasscodeModal={togglePasscodeModal}
handlePasscodeSave={handlePasscodeSave}
/>
{/* <div className="p-2">
<Link
to="/setup/profile"
id="btnSetupWallet"
type="button"
className="btn btn-lg btn-block btn-primary mt-3"
>
<IoWalletOutline className="ion-icon" aria-label="Restore Using Google" />
Register as Vendor
</Link>
</div> */}
{!restorePage && (
<div className="p-2">
<Link
to="/setup/profile"
id="btnSetupWallet"
type="button"
className="btn btn-lg btn-block btn-primary mt-3"
>
<IoWalletOutline className="ion-icon" aria-label="Restore Using Google" />
Register as Vendor
</Link>
<div className="form-links mt-2">
<div className="text-center">
<strong>Already registered? </strong>
<button className="btn btn-text p-0 ml-2" onClick={toggleRestore}>
Restore
</button>
</div>
</div>
</div>
)}
{restorePage && (
<div className="p-2">
<button
onClick={() => {
setRestoreMthd(RESTORE_METHOD.GOOGLE);
togglePasscodeModal();
}}
className="btn btn-lg w-100 btn-warning mb-2"
>
<FaGoogleDrive className="mr-2" size={'1.3em'} />
Restore from Google Drive
</button>
<button
onClick={() => {
setRestoreMthd(RESTORE_METHOD.MNEMOMICS);
togglePasscodeModal();
}}
className="btn btn-lg w-100 btn-primary "
>
<FaKey className="mr-2" size={'1.3em'} />
Restore from Mnemonics
</button>
<div className="form-links mt-2">
<div className="text-center w-100">
<button className="btn btn-text" onClick={toggleRestore}>
Back
</button>
</div>
</div>
</div>
)}
<div className="text-center mt-4">
<small>Version: {PackageJson.version}</small>
</div>
</div>
</>
);
}