tr]:last:border-b-0", className)}
- {...props} />
- );
-}
-
-function TableRow({
- className,
- ...props
-}) {
- return (
-
- );
-}
-
-function TableHead({
- className,
- ...props
-}) {
- return (
- [role=checkbox]]:translate-y-[2px]",
- className
- )}
- {...props} />
- );
-}
-
-function TableCell({
- className,
- ...props
-}) {
- return (
- | [role=checkbox]]:translate-y-[2px]",
- className
- )}
- {...props} />
- );
-}
-
-function TableCaption({
- className,
- ...props
-}) {
- return (
-
- );
-}
-
-export {
- Table,
- TableHeader,
- TableBody,
- TableFooter,
- TableHead,
- TableRow,
- TableCell,
- TableCaption,
-}
diff --git a/src/components/ui/tooltip.jsx b/src/components/ui/tooltip.jsx
deleted file mode 100644
index 9982c04..0000000
--- a/src/components/ui/tooltip.jsx
+++ /dev/null
@@ -1,55 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as TooltipPrimitive from "@radix-ui/react-tooltip"
-
-import { cn } from "@/lib/utils"
-
-function TooltipProvider({
- delayDuration = 0,
- ...props
-}) {
- return ();
-}
-
-function Tooltip({
- ...props
-}) {
- return (
-
-
-
- );
-}
-
-function TooltipTrigger({
- ...props
-}) {
- return ;
-}
-
-function TooltipContent({
- className,
- sideOffset = 0,
- children,
- ...props
-}) {
- return (
-
-
- {children}
-
-
-
- );
-}
-
-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
diff --git a/src/lib/game.js b/src/lib/game.js
index 14427b2..755e5d3 100644
--- a/src/lib/game.js
+++ b/src/lib/game.js
@@ -128,11 +128,6 @@ export function getResultMessage(score, distance) {
return "Nice try! Better luck next time!";
}
-// Get accumulated score message
-export function getAccumulatedScoreMessage(newScore, totalScore) {
- return `+${newScore} points! Total score: ${totalScore}`;
-}
-
// Get distance color for leaderboard display
export function getDistanceColor(distance) {
if (distance <= 50) return 'text-green-700 dark:text-green-300';
@@ -141,18 +136,3 @@ export function getDistanceColor(distance) {
if (distance <= 500) return 'text-orange-700 dark:text-orange-300';
return 'text-red-700 dark:text-red-300';
}
-
-// Get random location within city bbox
-export function getRandomCityLocationFromBbox(cityCode) {
- const bbox = cityBboxes[cityCode];
- if (!bbox) {
- throw new Error(`No bbox found for city code: ${cityCode}`);
- }
-
- const [minLng, minLat, maxLng, maxLat] = bbox;
-
- const lng = Math.random() * (maxLng - minLng) + minLng;
- const lat = Math.random() * (maxLat - minLat) + minLat;
-
- return { lat, lng };
-}
|