added next-intl, composed next-auth and next-intl in middleware, fixed some bugs, completed details page, added google auth

This commit is contained in:
Alibek committed 2024-02-29 14:09:37 +06:00
1 parent 9cd7b2a67d
commit 6637ab4eae
172 files changed
+1772 -502

No files matched your search

+3 -1
View File
@@ -3,6 +3,7 @@
import "./SearchForm.scss";
import Image from "next/image";
import search from "./icons/search.svg";
import { useTranslations } from "next-intl";
interface ISearchFormProps
extends React.InputHTMLAttributes<HTMLInputElement> {
@@ -17,6 +18,7 @@ const SearchForm: React.FC<ISearchFormProps> = ({
onChange,
style,
}: ISearchFormProps) => {
const t = useTranslations("general");
return (
<form
style={style}
@@ -33,7 +35,7 @@ const SearchForm: React.FC<ISearchFormProps> = ({
type="text"
/>
</div>
<button type="submit">Поиск</button>
<button type="submit">{t("search")}</button>
</form>
);
};