refactror

This commit is contained in:
2025-08-30 14:03:12 +02:00
parent cf655833b2
commit 8ceb9c7105
23 changed files with 124 additions and 133 deletions

View File

@@ -1,4 +1,4 @@
import { getColor } from "@/data/colors"
import { getColor } from "@/lib/colors"
import { Player } from "@/lib/schema/player"
type NewPackageRank = Player["player"]["newPackageRank"]

View File

@@ -1,7 +1,7 @@
"use client"
import { Input } from "@/components/ui/input"
import { validatePlayer } from "@/lib/hypixel/validatePlayer"
import { validatePlayer } from "@/lib/hypixel/actions"
import { cn } from "@/lib/utils"
import { Search } from "lucide-react"
import { useRouter } from "next/navigation"
@@ -41,7 +41,7 @@ export function SearchBar({ navbar }: { navbar?: boolean }) {
<div className={cn("w-full max-w-4xl px-4", !navbar && "mt-8")}>
<form onSubmit={handleSearch}>
<div className="relative">
<Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4" />
<Search className="absolute left-3 top-1/2 w-4 h-4 transform -translate-y-1/2 text-muted-foreground" />
<Input
type="text"
placeholder={!navbar ? "Search for a player..." : ""}