Skip to content

Commit

Permalink
add new verison
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiamast committed Feb 12, 2022
1 parent b7f0247 commit c795c4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
CI= npm run build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"homepage": "https://persianwordle.github.io",
"name": "persian-wordle",
"version": "1.3.1",
"name": "PersianWordle",
"version": "1.5.1",
"private": true,
"dependencies": {
"@headlessui/react": "^1.4.2",
Expand Down
7 changes: 7 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {
saveGameStateToLocalStorage,
} from './lib/localStorage'

import ReactGA from 'react-ga'

function App() {
const [currentGuess, setCurrentGuess] = useState('')
const [isGameWon, setIsGameWon] = useState(false)
Expand Down Expand Up @@ -94,6 +96,11 @@ function App() {
}
}
}
useEffect(() => {
ReactGA.initialize('token')
ReactGA.pageview('/')
}, [])


return (
<div className="py-5 max-w-7xl mx-auto sm:px-6 lg:px-8">
Expand Down

0 comments on commit c795c4f

Please sign in to comment.