Skip to content

Commit

Permalink
Merge pull request #99 from UrbanOS-Public/1174-custom-favicon
Browse files Browse the repository at this point in the history
Added custom favicon to helmet
  • Loading branch information
RyanRConaway authored May 11, 2023
2 parents b3ed449 + e6e2d3a commit 90d01aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ window.AUTH0_AUDIENCE = 'discovery_api'
window.REQUIRE_API_KEY = 'false'
window.REGENERATE_API_KEY_FF = 'true'
window.PRIMARY_COLOR = '#28807C'
window.CUSTOM_FAV_ICON_URL = 'https://michigan.gov/favicon.ico'
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discovery_ui",
"version": "2.1.38",
"version": "2.1.40",
"description": "UI for dataset discovery",
"main": "./src/index.js",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/HelmetStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export default class HelmetStyles extends Component {
render() {
return (
<Helmet>
<link href={`"${window.CUSTOM_FAV_ICON_URL}"`} rel="icon" type="image/x-icon" />
<title>{`${window.HEADER_TITLE}`}</title>
<style type="text/css">{`
content {
accent-color: ${window.PRIMARY_COLOR};
Expand Down

0 comments on commit 90d01aa

Please sign in to comment.