Fix translations (#68)

* Feature/clear search (#66)

* clear search

* clear button placement

* smaller button size

* multilingual clear button

* Fix translation (#65)

---------

Co-authored-by: Owen Rees <owenrees82@gmail.com>
This commit is contained in:
Timothy Armes
2023-07-05 21:52:01 +02:00
committed by GitHub
parent 6a35a207ed
commit f88923851a
4 changed files with 28 additions and 8 deletions
+6 -4
View File
@@ -1,11 +1,13 @@
import { useAtom } from "jotai";
import { Dispatch, SetStateAction } from "react";
import { useTranslations } from "next-intl";
import { searchStringAtom } from "@/app/atoms";
interface SearchBarProps {
searchString: string;
setSearchString: Dispatch<SetStateAction<string>>;
}
const SearchBar = () => {
const SearchBar = ({ searchString, setSearchString }: SearchBarProps) => {
const t = useTranslations("Tournaments");
const [searchString, setSearchString] = useAtom(searchStringAtom);
return (
<div className="bg-white dark:bg-gray-800">