From 551948844b3c49d59e66cecc0b4a316a0bf5f391 Mon Sep 17 00:00:00 2001 From: Marco E <31892221+marcoandre1@users.noreply.github.com> Date: Wed, 11 Jan 2023 14:20:43 -0500 Subject: [PATCH 1/2] Fix #147 language switch button closes correctly --- src/App.js | 1 + src/components/Navigation.jsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/App.js b/src/App.js index b69a0c1..bf940c8 100644 --- a/src/App.js +++ b/src/App.js @@ -98,6 +98,7 @@ class App extends Component { handleLanguageClick(languageId) { this.setLanguage(languageId); + this.onTranslateToggle(); } setDarkMode() { diff --git a/src/components/Navigation.jsx b/src/components/Navigation.jsx index f5de848..188a41a 100644 --- a/src/components/Navigation.jsx +++ b/src/components/Navigation.jsx @@ -99,6 +99,7 @@ const Navigation = ({ languages.find((element) => element.id === languageId) .aboutAnchorLabel } + onClick={onMobileMenuClick} > { languages.find((element) => element.id === languageId) @@ -115,6 +116,7 @@ const Navigation = ({ languages.find((element) => element.id === languageId) .projectAnchorLabel } + onClick={onMobileMenuClick} > { languages.find((element) => element.id === languageId) From 0469ccf18edca59311d6e7f337231a2e5234e933 Mon Sep 17 00:00:00 2001 From: Marco E <31892221+marcoandre1@users.noreply.github.com> Date: Wed, 11 Jan 2023 14:31:04 -0500 Subject: [PATCH 2/2] Bump app version to 2.0.4 --- CHANGELOG.md | 5 +++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index afd77d9..c004fbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## v2.0.4 + +- Fix #147 language switch button closes correctly when language is choose. +- Fix burger menu for mobile: closes when link is selected. + ## v2.0.3 - #148 Bumb puppeteer in react-snap dependency (@marcoandre1) diff --git a/package-lock.json b/package-lock.json index 75fbdeb..de9ee7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "modokemdev-website", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "modokemdev-website", - "version": "2.0.3", + "version": "2.0.4", "license": "MIT", "dependencies": { "@headlessui/react": "^0.2.0", diff --git a/package.json b/package.json index f55e5f1..f21e160 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "modokemdev-website", - "version": "2.0.3", + "version": "2.0.4", "description": "Modokemdev website created using create-react-app", "main": "index.js", "private": true,