From 78dc37f9b74780e28fad44b9f24a00244bedd18b Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 18 Apr 2024 18:13:57 +0100 Subject: [PATCH] update stat ids --- src/app/(pages)/page.tsx | 5 +++++ src/app/components/code-highlighter.tsx | 3 +-- src/app/components/stats.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/app/(pages)/page.tsx b/src/app/(pages)/page.tsx index 896c4e4..d270c15 100644 --- a/src/app/(pages)/page.tsx +++ b/src/app/(pages)/page.tsx @@ -31,6 +31,11 @@ type Button = { const buttons: Button[] = [ { title: "Get Started", + tooltip: "Click to view get started!", + url: "/player", + }, + { + title: "Postman Collection", tooltip: "Click to view the Postman Collection", url: "https://www.postman.com/imfascinated/workspace/minecraft-utilities", openInNewTab: true, diff --git a/src/app/components/code-highlighter.tsx b/src/app/components/code-highlighter.tsx index 93785f5..d12a73b 100644 --- a/src/app/components/code-highlighter.tsx +++ b/src/app/components/code-highlighter.tsx @@ -1,5 +1,6 @@ import { ReactElement } from "react"; import SyntaxHighlighter from "react-syntax-highlighter"; +import createElement from "react-syntax-highlighter/dist/esm/create-element"; import { atomOneDark } from "react-syntax-highlighter/dist/esm/styles/hljs"; type CodeHighlighterProps = { @@ -14,8 +15,6 @@ type CodeHighlighterProps = { rounded?: boolean; }; -import createElement from "react-syntax-highlighter/dist/esm/create-element"; - /** * Render the rows with the ability to render links. * diff --git a/src/app/components/stats.tsx b/src/app/components/stats.tsx index efdd67e..8b70f7f 100644 --- a/src/app/components/stats.tsx +++ b/src/app/components/stats.tsx @@ -36,15 +36,15 @@ const stats: Stat[] = [ icon: , }, { - id: "totalPlayerLookups", + id: "uniquePlayerLookups", displayName: "Player Lookups", - tooltip: "The total amount of player lookups", + tooltip: "The unique amount of player lookups", icon: , }, { - id: "totalServerLookups", + id: "uniqueServerLookups", displayName: "Server Lookups", - tooltip: "The total amount of server lookups", + tooltip: "The unique amount of server lookups", icon: , }, ];