From 68d5ef3c338b28c860e28519376e6c7e42606ec2 Mon Sep 17 00:00:00 2001 From: NancyAanchal Date: Thu, 18 Jul 2024 21:13:53 +0545 Subject: [PATCH] designed according to figma --- .../src/components/header/ChangeLanguage.tsx | 11 ++++------- nepalingo-web/src/components/header/Header.tsx | 2 +- nepalingo-web/src/components/header/Menu.tsx | 11 ++++++----- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/nepalingo-web/src/components/header/ChangeLanguage.tsx b/nepalingo-web/src/components/header/ChangeLanguage.tsx index 87d4c05..c0bb892 100644 --- a/nepalingo-web/src/components/header/ChangeLanguage.tsx +++ b/nepalingo-web/src/components/header/ChangeLanguage.tsx @@ -12,27 +12,24 @@ const ChangeLanguage: React.FC = () => { }; const handleSelect = (option: string) => { - if (option === "newari") { - //will be handled later - } setSelectedLanguage(option); setIsOpen(false); }; const options = [ { label: "Nepal Bhasa", value: "newari" }, - { label: "Tajpuriya", value: "comingSoon" }, - { label: "Maithili", value: "comingSoon" }, + { label: "Tajpuriya", value: "tajpuriya" }, + { label: "Maithili", value: "coming soon" }, ]; return (
diff --git a/nepalingo-web/src/components/header/Header.tsx b/nepalingo-web/src/components/header/Header.tsx index 80bed5a..a54893b 100644 --- a/nepalingo-web/src/components/header/Header.tsx +++ b/nepalingo-web/src/components/header/Header.tsx @@ -15,7 +15,7 @@ const Header: React.FC = () => { Nepalingo Logo
-
+
diff --git a/nepalingo-web/src/components/header/Menu.tsx b/nepalingo-web/src/components/header/Menu.tsx index 8edf7a2..ad3a273 100644 --- a/nepalingo-web/src/components/header/Menu.tsx +++ b/nepalingo-web/src/components/header/Menu.tsx @@ -10,21 +10,22 @@ const Menu: React.FC = ({ isOpen, onSelect, options }) => { if (!isOpen) return null; return ( -
+
- {options.map((option) => ( + {options.map((option, index) => (