Skip to content

Commit

Permalink
Merge pull request #8 from hexlet-components/unload-resources
Browse files Browse the repository at this point in the history
add setTimeout
  • Loading branch information
fey committed May 30, 2023
2 parents 415bb47 + 46d7f14 commit 56dec0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Base/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Header = () => {
const cart = useSelector(selectCart);
const productsInCartCount = useSelector(selectCartProductsCount);

const handleClick = (lang: string) => i18n.changeLanguage(lang);
const handleClick = (lang: string) => setTimeout(() => i18n.changeLanguage(lang), 1000);

return (
<header className='navbar navbar-expand-lg navbar-light bg-light shadow'>
Expand Down

1 comment on commit 56dec0e

@vercel
Copy link

@vercel vercel bot commented on 56dec0e May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.