Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
feat: update FontAwesome 5.0.x to 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Oct 6, 2018
1 parent 1ca929a commit f9c51e7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/components/ContactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import g from 'glamorous'
import axios from 'axios'
import isEmail from 'validator/lib/isEmail'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { colors, fontFamilies } from '@/theme'
import { Button } from '@/components/layout/Button'
import TextareaAutosize from 'react-textarea-autosize'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { css } from 'glamor'
import Link from '@/components/Link'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import hex2rgba from 'hex2rgba'
import { colors, media } from '@/theme'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { colors } from '@/theme'

const Wrapper = ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewsletterWidget/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import g from 'glamorous'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import isEmail from 'validator/lib/isEmail'
import { colors, fontFamilies } from '@/theme'
import { Button } from '@/components/layout/Button'
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShareWidget.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { colors, media } from '@/theme'

const ShareWidget = ({ label, post, siteUrl, ...props }) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Shared.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'gatsby'
import { Link, graphql } from 'gatsby'
import Img from 'gatsby-image'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { colors, Box, fontFamilies, H2, fullPageWidth, media } from '@/theme'
import Lazy from '@/components/Lazy'
// import DonationForm from '@/components/DonationForm'
Expand Down
2 changes: 1 addition & 1 deletion src/templates/ContactPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import MainLayout from '@/components/MainLayout'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { colors, media } from '@/theme'
import TitledCopy from '@/components/TitledCopy'
import { Newsletter } from '@/components/NewsletterWidget'
Expand Down
2 changes: 1 addition & 1 deletion src/templates/SupportPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import Img from 'gatsby-image'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { css } from 'glamor'
import MainLayout from '@/components/MainLayout'
import { SupportWidget } from '@/components/Shared'
Expand Down
16 changes: 5 additions & 11 deletions src/utils/fontawesome.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import fontawesome from '@fortawesome/fontawesome'

import { faEnvelope } from '@fortawesome/fontawesome-free-regular/shakable'

import { library } from '@fortawesome/fontawesome-svg-core'
import { faEnvelope } from '@fortawesome/free-regular-svg-icons'
import {
faFacebookSquare,
faInstagram,
Expand All @@ -11,8 +9,7 @@ import {
faGooglePlusSquare,
faGithub,
faTelegramPlane,
} from '@fortawesome/fontawesome-free-brands/shakable'

} from '@fortawesome/free-brands-svg-icons'
import {
faCaretDown,
faNewspaper,
Expand All @@ -23,12 +20,9 @@ import {
faCaretLeft,
faCaretRight,
faSpinner,
} from '@fortawesome/fontawesome-free-solid/shakable'

// Watch the DOM for any changes and add, replace, or modify icons on-the-fly
fontawesome.config.observeMutations = false
} from '@fortawesome/free-solid-svg-icons'

fontawesome.library.add(
library.add(
faFacebookSquare,
faInstagram,
faYoutube,
Expand Down

0 comments on commit f9c51e7

Please sign in to comment.