feat: add user search

This commit is contained in:
Kentai Radiquum 2024-11-21 22:59:43 +05:00
parent 048bed7085
commit ff3753a951
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 38 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import { useSearchParams } from "next/navigation";
import { useUserStore } from "../store/auth";
import { Button, Dropdown, Modal } from "flowbite-react";
import { CollectionsSection } from "#/components/CollectionsSection/CollectionsSection";
import { UserSection } from "#/components/UserSection/UserSection";
const fetcher = async (url: string) => {
const res = await fetch(url);
@ -243,7 +244,10 @@ export function SearchPage() {
content={content}
/>
) : where == "profiles" ? (
<>Not Implemented Yet</>
<UserSection
sectionTitle="Найденные Пользователи"
content={content}
/>
) : (
<ReleaseSection
sectionTitle="Найденные релизы"