Skip to content

Commit

Permalink
metadata fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilge-ustun committed Mar 4, 2024
1 parent e20554e commit 8ccfbd8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Binary file modified app/public/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Faucet for Gnosis chain"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Gnosis Faucet</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed app/public/logo192.png
Binary file not shown.
Binary file removed app/public/logo512.png
Binary file not shown.
4 changes: 2 additions & 2 deletions app/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Gnosis Faucet",
"name": "Faucet for Gnosis chain",
"icons": [
{
"src": "favicon.ico",
Expand Down
4 changes: 4 additions & 0 deletions app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ function App(): JSX.Element {
.then((response) => {
setChainId(response.data.chainId)
setEnabledTokens(response.data.enabledTokens)

const chain = chainName[response.data.chainId]
document.title = `${chain} Faucet`
document.querySelector('meta[name="description"]')?.setAttribute("content", `Faucet for ${chain} chain`)
})
.catch(() => {
toast.error("Network error")
Expand Down

0 comments on commit 8ccfbd8

Please sign in to comment.