From a4ef589ca9dd57ee9e68ab14c724a9e89114606b Mon Sep 17 00:00:00 2001 From: "salar.sali" Date: Fri, 11 Nov 2022 05:03:34 -0500 Subject: [PATCH 1/4] The translation in burger component resolved --- src/components/Burger.tsx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/Burger.tsx b/src/components/Burger.tsx index 99b9e67..269379c 100644 --- a/src/components/Burger.tsx +++ b/src/components/Burger.tsx @@ -21,10 +21,12 @@ import { ReactComponent as SVGFile } from "assets/svg/file.svg"; import { ReactComponent as SVGEye } from "assets/svg/eye.svg"; import { ReactComponent as SVGArrowUp } from "assets/svg/arrow-up.svg"; import { ReactComponent as SVGCaretDown } from "assets/svg/caret-down.svg"; +import { useTranslation } from "react-i18next"; type Props = React.ComponentPropsWithoutRef<"div">; const Burger = (props: Props) => { + const { t, i18n } = useTranslation(); return (
@@ -46,13 +48,15 @@ const Burger = (props: Props) => { leaveTo="transform opacity-0 scale-95" >
- create new + + {t("navbar.createNew")} +
@@ -66,7 +70,7 @@ const Burger = (props: Props) => { text-base " > - my library + {t("navbar.library.navTitle")} { " > - My Publications + {t("navbar.library.publications")} @@ -96,7 +100,7 @@ const Burger = (props: Props) => { " > - My Favorites + {t("navbar.library.favorites")} @@ -109,7 +113,7 @@ const Burger = (props: Props) => { " > - My Collections + {t("navbar.library.collections")} @@ -122,7 +126,7 @@ const Burger = (props: Props) => { " > - Recent Viewed + {t("navbar.library.recentViewed")} @@ -140,7 +144,7 @@ const Burger = (props: Props) => { text-base " > - About + {t("navbar.about.navTitle")} { text-base " > - About Freeland + {t("navbar.about.aboutProject")} @@ -168,7 +172,7 @@ const Burger = (props: Props) => { text-base " > - Contact Us + {t("navbar.about.contacts")} @@ -180,7 +184,7 @@ const Burger = (props: Props) => { text-base " > - Help + {t("navbar.about.help")} -- 2.39.5 From a4a8116d326a0c66e7dc903a3b64cb1d39f9202b Mon Sep 17 00:00:00 2001 From: "salar.sali" Date: Fri, 11 Nov 2022 05:16:02 -0500 Subject: [PATCH 2/4] The overlaping in the navbar resolved --- src/components/parts/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/parts/Header.tsx b/src/components/parts/Header.tsx index e38c1d5..84761bf 100755 --- a/src/components/parts/Header.tsx +++ b/src/components/parts/Header.tsx @@ -80,7 +80,7 @@ const Header = () => { { Date: Fri, 11 Nov 2022 08:53:01 -0500 Subject: [PATCH 3/4] topic resolved --- src/components/ArticleSearchResult.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/ArticleSearchResult.tsx b/src/components/ArticleSearchResult.tsx index a1571be..af16c57 100755 --- a/src/components/ArticleSearchResult.tsx +++ b/src/components/ArticleSearchResult.tsx @@ -27,17 +27,15 @@ export const ArticleSearchResult = ({ searchItem }: Props) => {
- {[ - `${searchItem.topic}`, - `${searchItem.topic}`, - `${searchItem.topic}`, - `${searchItem.topic}`, - ]} + {[`${searchItem.topic}`]}
- + {searchItem.title} -- 2.39.5 From 43bc96bdf62847082137be732beac56fcb6b2899 Mon Sep 17 00:00:00 2001 From: danysmall Date: Mon, 14 Nov 2022 12:31:42 +0300 Subject: [PATCH 4/4] Removed double request --- src/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 9f61062..0e8c2e4 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -25,7 +25,6 @@ if (!rootElement) throw new Error("Failed to find the root element"); const root = ReactDOM.createRoot(rootElement); root.render( - } /> @@ -46,7 +45,6 @@ root.render( }> - ); -- 2.39.5