From 73d43e4bdd5cb1c723e99efbed26852db22d1c11 Mon Sep 17 00:00:00 2001 From: AsmitaMishra24 <146121869+AsmitaMishra24@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:11:18 +0530 Subject: [PATCH] Added Translator --- client/src/components/Navbar/navbar.jsx | 23 ++++----- .../src/components/Translator/Translator.css | 47 +++++++++++++++++++ .../src/components/Translator/Translator.jsx | 40 ++++++++++++++++ 3 files changed, 99 insertions(+), 11 deletions(-) create mode 100644 client/src/components/Translator/Translator.css create mode 100644 client/src/components/Translator/Translator.jsx diff --git a/client/src/components/Navbar/navbar.jsx b/client/src/components/Navbar/navbar.jsx index c8125a2..2748a6b 100644 --- a/client/src/components/Navbar/navbar.jsx +++ b/client/src/components/Navbar/navbar.jsx @@ -7,9 +7,9 @@ import logo2 from "../../assets/shoelogo.jpg"; import axios from "axios"; import {useDispatch, useSelector} from "react-redux"; import { logOut, setUsername } from "../../redux/auth-slice"; +import Translate from "../Translator/Translator"; const Navbar = () => { - const [user, setUser] = useState(); const dispatch = useDispatch(); const logged = useSelector((state)=>state.auth.value.isAuth); @@ -135,14 +135,14 @@ const Navbar = () => { Login -