From 01a873477b547e1f425087c1b66d92ba0c9e24ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CSalar?= <“salar.sali97@gmail.com”> Date: Wed, 19 Oct 2022 16:58:19 +0300 Subject: [PATCH] resolve localization button in the header --- src/components/parts/Header.tsx | 97 +++++++++++++++++---------------- 1 file changed, 51 insertions(+), 46 deletions(-) diff --git a/src/components/parts/Header.tsx b/src/components/parts/Header.tsx index 9fbd384..258238c 100755 --- a/src/components/parts/Header.tsx +++ b/src/components/parts/Header.tsx @@ -5,7 +5,7 @@ import { useState, useTransition } from "react"; /* -------------------------------------------------------------------------- */ import ContextMenuAction from "../drop-down-menu/ContextMenuAction"; import ContextMenu from "../drop-down-menu/ContextMenu"; -import LogoScipaper from "../LogoScipaper"; +import Logofreeland from "../Logofreeland"; import { Button } from "../Button/Button"; import Avatar from "../Avatar"; import Navbar from "../Navbar"; @@ -25,6 +25,8 @@ import { } from "components/icons"; import i18n from "localization/i18n"; import { useTranslation } from "react-i18next"; +import LocalizationButton from "components/LocalizationButton"; +import Link from "components/typography/Link"; const Header = () => { const [authenticated, setAuthenticated] = useState(false); @@ -47,16 +49,16 @@ const Header = () => { xl:gap-60 xl:px-16" > {/* Logo and Menu */} -
+
{/* Logo - start - className="w-7 sm:w-10 " /> */} - + - - + {/* Logo - end - */} {/* Menu( Create new - My library - About ) Start */} @@ -69,36 +71,36 @@ const Header = () => { className="text-blue-500 px-4 font-bold uppercase" to="/create-new" > - {t('navbar.createNew')} + {t("navbar.createNew")} {/* Link Create now - end - */} {/* Dropdown Menu My library - start - */} console.log("My publications")} icon={} > console.log("My Favorites")} icon={} > console.log("My Collections")} icon={} > console.log("Recent Viewed")} icon={} > @@ -108,21 +110,21 @@ const Header = () => { {/* Dropdown Menu About - start - */} console.log("About Freeland")} > console.log("Contact Us")} > console.log("Help")} > @@ -135,38 +137,41 @@ const Header = () => {
{!authenticated ? [ - , - , - ] + <> + + + , + , + ] : [ - , + , - , - ]} + , + ]} {/* Burger component will be shown for the small screens */}