diff --git a/packages/web/src/analytics/firebase.ts b/packages/web/src/analytics/firebase.ts index c1195b64..44bcf73e 100644 --- a/packages/web/src/analytics/firebase.ts +++ b/packages/web/src/analytics/firebase.ts @@ -74,6 +74,10 @@ const leaderboardsDisplayed = (): void => { firebase.logEvent("leaderboards"); }; +const playersPageDisplayed = (): void => { + firebase.logEvent("playersPage"); +}; + const playerCardDisplayed = (): void => { firebase.logEvent("playerCard"); }; @@ -136,6 +140,7 @@ const firebaseAnalytics = { playerCardDisplayed, leaderboardsDateInteraction, leaderboardsTypeInteraction, + playersPageDisplayed, playerCardMatchesDisplayed, playerCardMatchDetailsDisplayed, playerCardFullMatchDetailsDisplayed, diff --git a/packages/web/src/components/charts/geo-map/geo-world-map.tsx b/packages/web/src/components/charts/geo-map/geo-world-map.tsx index da02beed..d86612c0 100644 --- a/packages/web/src/components/charts/geo-map/geo-world-map.tsx +++ b/packages/web/src/components/charts/geo-map/geo-world-map.tsx @@ -2,7 +2,7 @@ import React from "react"; import { ResponsiveChoropleth } from "@nivo/geo"; import { geoMapFeatures } from "./geo-map-features"; import { stateNamesByCode } from "./states"; -import { Row, Space, Table } from "antd"; +import { Row, Table } from "antd"; import { CountryFlag } from "../../country-flag"; import { UserOutlined } from "@ant-design/icons"; @@ -65,8 +65,8 @@ const GeoWorldMap: React.FC = ({ data }) => { return (
- -
+
+
= ({ data }) => { // ]} />
-
+
= ({ data }) => { pagination={false} /> - + ); diff --git a/packages/web/src/pages/about/about.tsx b/packages/web/src/pages/about/about.tsx index 8fa754c9..95358e17 100644 --- a/packages/web/src/pages/about/about.tsx +++ b/packages/web/src/pages/about/about.tsx @@ -3,6 +3,7 @@ import { Typography } from "antd"; import { doc, getDoc, getFirestore } from "firebase/firestore"; import { KofiDonate } from "./kofi-donate"; import config from "../../config"; +import { PayPalDonation } from "./paypal-donations"; const { Title, Link, Text, Paragraph } = Typography; @@ -242,7 +243,8 @@ const About: React.FC = () => { kind of income (donations/ads?).

- If you would like to give financial support, you can do so.
+ If you like the site please consider donating. +
100% of donations will go towards this project costs

@@ -252,6 +254,10 @@ const About: React.FC = () => {
no registration required. +
+
+ + Direct PayPal ); diff --git a/packages/web/src/pages/players/stats/player-stats.tsx b/packages/web/src/pages/players/stats/player-stats.tsx index 3ef55335..08347864 100644 --- a/packages/web/src/pages/players/stats/player-stats.tsx +++ b/packages/web/src/pages/players/stats/player-stats.tsx @@ -9,6 +9,7 @@ import { Loading } from "../../../components/loading"; import { AlertBox } from "../../../components/alert-box"; import { Link } from "react-router-dom"; import routes from "../../../routes"; +import firebaseAnalytics from "../../../analytics"; const { Text, Title } = Typography; @@ -27,6 +28,8 @@ const PlayerStats: React.FC = () => { const [error, setError] = useState(""); useEffect(() => { + firebaseAnalytics.playersPageDisplayed(); + try { (async () => { setIsLoading(true);