Skip to content

Commit

Permalink
Added MS Clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishvanand committed Oct 30, 2023
1 parent 913ef09 commit 343e421
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@
"corporate-taxid-checker-js": "^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-microsoft-clarity": "^1.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -b gh-pages -d build"
},
"eslintConfig": {
"extends": [
Expand Down
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
import CancelIcon from "@mui/icons-material/Cancel";
import validateTaxDetails from "corporate-taxid-checker-js";
import { clarity } from 'react-microsoft-clarity';

const countries = [
{ code: "AD", label: "Andorra" },
Expand Down Expand Up @@ -117,6 +118,8 @@ const countries = [
];

const App = () => {
clarity.init("jiofplb3zu");
clarity.consent();
const [country, setCountry] = useState(null);
const [taxId, setTaxId] = useState("");
const [validationResult, setValidationResult] = useState(null);
Expand Down

0 comments on commit 343e421

Please sign in to comment.