refactror
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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..." : ""}
|
||||
|
||||
Reference in New Issue
Block a user