Skip to content

Commit

Permalink
add ReactGA token
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiamast committed Feb 12, 2022
1 parent c795c4f commit 351747f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
content="چالش حدس کلمه : می تونی در شش حرکت کلمه روز را حدس بزنی؟"
/>
<meta name="keywords" content="وردل فارسی , نسخه فارسی شده بازی wordle,پرشین وردل ,Persian Wordle">
<title>وردل فارسی - چالش حدس کلمه امروز</title>
<title>وردل فارسی - یک چالش حدس کلمه </title>
</head>
<body>
<noscript>برای استفاده از این اپ باید جاوااسکریپت مرورگر خود را فعال کنید.</noscript>
Expand Down
5 changes: 3 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
} from './lib/localStorage'

import ReactGA from 'react-ga'
import Token from './components/constants/reactGAToken'

function App() {
const [currentGuess, setCurrentGuess] = useState('')
Expand Down Expand Up @@ -97,7 +98,7 @@ function App() {
}
}
useEffect(() => {
ReactGA.initialize('token')
ReactGA.initialize(Token)
ReactGA.pageview('/')
}, [])

Expand Down Expand Up @@ -161,7 +162,7 @@ function App() {

<button
type="button"
className="mx-auto mt-10 flex items-center px-2.5 py-1.5 border border-transparent text-xs font-medium rounded text-indigo-700 bg-white hover:border-2 hover:border-indigo-200 focus:outline-none "
className="mx-auto mt-10 flex items-center px-2.5 py-1.5 text-xs font-medium rounded text-indigo-700 bg-white focus:outline-none "
onClick={() => setIsAboutModalOpen(true)}
>
درباره وردل فارسی
Expand Down
2 changes: 2 additions & 0 deletions src/components/constants/reactGAToken.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const Token = 'UA-219092528-1'
export default Token
2 changes: 1 addition & 1 deletion src/components/grid/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Cell = ({ value, status }: Props) => {
const classes = classnames(
'w-14 h-14 border-solid border-2 flex items-center justify-center mx-0.5 text-lg font-bold rounded-lg',
{
'bg-white border-gray-300': !status,
'bg-white': !status,
'bg-slate-400 text-white border-slate-400': status === 'absent',
'bg-green-500 text-white border-green-500': status === 'correct',
'bg-yellow-500 text-white border-yellow-500': status === 'present',
Expand Down

0 comments on commit 351747f

Please sign in to comment.