fix: remove duplicate menu search
This commit is contained in:
@@ -618,23 +618,6 @@ export function PublicLayout() {
|
|||||||
ref={menuRef}
|
ref={menuRef}
|
||||||
className={`${headerMenuAnimationClass} fixed inset-x-0 top-[64px] z-50 grid gap-2 bg-[#08070c] px-4 py-3 shadow-2xl shadow-black/50 min-[440px]:px-5 sm:px-6 md:top-[70px] md:px-9 min-[1200px]:hidden`}
|
className={`${headerMenuAnimationClass} fixed inset-x-0 top-[64px] z-50 grid gap-2 bg-[#08070c] px-4 py-3 shadow-2xl shadow-black/50 min-[440px]:px-5 sm:px-6 md:top-[70px] md:px-9 min-[1200px]:hidden`}
|
||||||
>
|
>
|
||||||
<div className="mb-1 hidden items-center gap-2 rounded-full border border-ark-line bg-[#1a1b20] px-3 py-2 md:flex">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={goSearch}
|
|
||||||
className="shrink-0 rounded-full p-1 text-[#c6c7cf] transition hover:bg-white/5 hover:text-ark-gold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ark-gold/60"
|
|
||||||
aria-label={t("searchNow")}
|
|
||||||
>
|
|
||||||
<SearchIcon size={16} />
|
|
||||||
</button>
|
|
||||||
<input
|
|
||||||
value={q}
|
|
||||||
onChange={(e) => setQ(e.target.value)}
|
|
||||||
onKeyDown={(e) => e.key === "Enter" && goSearch()}
|
|
||||||
placeholder={t("searchPlaceholder")}
|
|
||||||
className="flex-1 bg-transparent text-sm outline-none placeholder:text-[#777985]"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<Link
|
<Link
|
||||||
to="/browse"
|
to="/browse"
|
||||||
className={mobileMenuNavClassName(na("browseAll"))}
|
className={mobileMenuNavClassName(na("browseAll"))}
|
||||||
|
|||||||
Reference in New Issue
Block a user