Skip to content

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
DCRepublic committed Dec 19, 2024
1 parent c3937a5 commit ab2f5c0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export default function Search(props: any) {
[searchParams]
);

const replaceText = (text: any) => {
setSearch(text?.replace(/\w+:/, <Chip>{text}</Chip>));
console.log(search);
};

const handleSearch = useDebouncedCallback((term: string) => {
//replaceText(term);
//setSearch(term);
Expand Down Expand Up @@ -96,12 +91,6 @@ export default function Search(props: any) {
setSelectedTerm(searchParams.get("term")?.toString().split(","));
}

if (searchTermCookie) {
params.set("query", searchTermCookie);
setSearch(searchTermCookie);
replace(`${pathname}?${params.toString()}`);
}

//searchTermCookie;
}, []);

Expand Down Expand Up @@ -166,7 +155,6 @@ export default function Search(props: any) {
<Input
isClearable
size={"lg"}
type="search"
className="col-span-9 lg:col-span-3 text-[16px]"
classNames={{
inputWrapper: ["border-primary", "border-[0.5px]"],
Expand Down

0 comments on commit ab2f5c0

Please sign in to comment.