mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user