remove clear button

This commit is contained in:
Owen Rees
2023-07-05 21:56:30 +02:00
parent f88923851a
commit d254780ee9
2 changed files with 5 additions and 22 deletions
+4 -7
View File
@@ -1,13 +1,10 @@
import { Dispatch, SetStateAction } from "react";
import { useTranslations } from "next-intl";
import { useAtom } from "jotai/index";
import { searchStringAtom } from "@/app/atoms";
interface SearchBarProps {
searchString: string;
setSearchString: Dispatch<SetStateAction<string>>;
}
const SearchBar = ({ searchString, setSearchString }: SearchBarProps) => {
const SearchBar = () => {
const t = useTranslations("Tournaments");
const [searchString, setSearchString] = useAtom(searchStringAtom);
return (
<div className="bg-white dark:bg-gray-800">