Skip to content

Commit

Permalink
Fix: no transitions for nav menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
dleclercpro committed Mar 3, 2024
1 parent 204d7a8 commit a090ff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Apps/Client/src/components/Nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $nav-min-width: 380px;
z-index: 1;
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease, visibility 0.5s;
// transition: opacity 0.5s ease, visibility 0.5s;

@include desktop {
transform: translate(50%, 0);
Expand Down
3 changes: 2 additions & 1 deletion Apps/Client/src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const Nav: React.FC = () => {
// Change language in i18n when it is changed in the component's state
useEffect(() => {
changeLanguage(lang);

}, [lang]);

// Close menu when clicking outside
Expand Down Expand Up @@ -80,7 +81,7 @@ const Nav: React.FC = () => {

const handleLogout = () => {
setIsOpen(false);

dispatch(logout());
}

Expand Down

0 comments on commit a090ff0

Please sign in to comment.