Skip to content

Commit

Permalink
Add wikipedia-w to supported icons (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-waarneming-nl authored Jan 6, 2025
1 parent 1df76aa commit 30111f6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@observation.org/react-native-components",
"version": "1.48.0",
"version": "1.49.0",
"main": "src/index.ts",
"repository": "[email protected]:observation/react-native-components.git",
"author": "Observation.org",
Expand Down Expand Up @@ -55,6 +55,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.7.2",
"@fortawesome/pro-light-svg-icons": "^6.6.0",
"@fortawesome/pro-solid-svg-icons": "^6.6.0",
"@fortawesome/react-native-fontawesome": "^0.3.2",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import Tooltip, { TooltipProps } from './components/Tooltip'
import WebLink from './components/WebLink'
import ProgressBar from './data/ProgressBar'
import useShowBlurView from './hooks/useShowBlurView'
import BrandIcons from './lib/BrandIcons'
import Icons, { IconName } from './lib/Icons'
import { setLogConfiguration } from './lib/Log'
import { openUrl } from './lib/Url'
Expand All @@ -50,6 +51,7 @@ export {
IconText,
IconView,
Icons,
BrandIcons,
InputField,
LargeButton,
Lightbox,
Expand Down
11 changes: 11 additions & 0 deletions src/lib/BrandIcons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { IconName as FontawesomeIconName } from '@fortawesome/fontawesome-svg-core'
import { IconDefinition } from '@fortawesome/free-brands-svg-icons'
import { faWikipediaW } from '@fortawesome/free-brands-svg-icons/faWikipediaW'

type IconName = Extract<FontawesomeIconName, 'wikipedia-w'>

const BrandIcons: { [key in IconName]: IconDefinition } = {
'wikipedia-w': faWikipediaW,
}

export default BrandIcons
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,13 @@ __metadata:
languageName: node
linkType: hard

"@fortawesome/fontawesome-common-types@npm:6.7.2":
version: 6.7.2
resolution: "@fortawesome/fontawesome-common-types@npm:6.7.2::__archiveUrl=https%3A%2F%2Fnpm.fontawesome.com%2F%40fortawesome%2Ffontawesome-common-types%2F-%2F6.7.2%2Ffontawesome-common-types-6.7.2.tgz"
checksum: 9c17f03032e56b8e8e996e5b2c15c8b47baf6f8d5c0703025b0b2711907245f94a7032b3da52d2714b5aeff1c14d3535e6869a82086136dcacae9ccd479dc6a2
languageName: node
linkType: hard

"@fortawesome/fontawesome-svg-core@npm:^6.6.0":
version: 6.6.0
resolution: "@fortawesome/fontawesome-svg-core@npm:6.6.0::__archiveUrl=https%3A%2F%2Fnpm.fontawesome.com%2F%40fortawesome%2Ffontawesome-svg-core%2F-%2F6.6.0%2Ffontawesome-svg-core-6.6.0.tgz"
Expand All @@ -1734,6 +1741,15 @@ __metadata:
languageName: node
linkType: hard

"@fortawesome/free-brands-svg-icons@npm:^6.7.2":
version: 6.7.2
resolution: "@fortawesome/free-brands-svg-icons@npm:6.7.2::__archiveUrl=https%3A%2F%2Fnpm.fontawesome.com%2F%40fortawesome%2Ffree-brands-svg-icons%2F-%2F6.7.2%2Ffree-brands-svg-icons-6.7.2.tgz"
dependencies:
"@fortawesome/fontawesome-common-types": 6.7.2
checksum: 1583c684e3070952ae392dcb1a6f8a3af3637b8030f2aa2a7305f09150d957493ac2e22d29fd45c801d7166c28200a8d1fc92d67b6aa528e9a3f9715b24a8e95
languageName: node
linkType: hard

"@fortawesome/pro-light-svg-icons@npm:^6.6.0":
version: 6.6.0
resolution: "@fortawesome/pro-light-svg-icons@npm:6.6.0::__archiveUrl=https%3A%2F%2Fnpm.fontawesome.com%2F%40fortawesome%2Fpro-light-svg-icons%2F-%2F6.6.0%2Fpro-light-svg-icons-6.6.0.tgz"
Expand Down Expand Up @@ -2507,6 +2523,7 @@ __metadata:
"@eslint/eslintrc": ^3.1.0
"@eslint/js": ^9.11.1
"@fortawesome/fontawesome-svg-core": ^6.6.0
"@fortawesome/free-brands-svg-icons": ^6.7.2
"@fortawesome/pro-light-svg-icons": ^6.6.0
"@fortawesome/pro-solid-svg-icons": ^6.6.0
"@fortawesome/react-native-fontawesome": ^0.3.2
Expand Down

0 comments on commit 30111f6

Please sign in to comment.