Skip to content

Commit

Permalink
fix button
Browse files Browse the repository at this point in the history
  • Loading branch information
francoborrelli committed Jul 3, 2024
1 parent 76c6bb5 commit 1ab43ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Layout/components/PlayingBar/mobileMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { useNavigate } from 'react-router-dom';
import { HomeIcon, LibraryIcon, SearchIcon } from '../../../Icons';
import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';
import { libraryActions } from '../../../../store/slices/library';

export const MobileMenu = () => {
const navigate = useNavigate();
const dispatch = useDispatch();

const [t] = useTranslation(['playingBar']);

Expand All @@ -21,10 +24,10 @@ export const MobileMenu = () => {
<SearchIcon />
<p>{t('Source code')}</p>
</a>
<a href='/about'>
<button onClick={() => dispatch(libraryActions.toggleLibrary())}>
<LibraryIcon />
<p>{t('Your Library')}</p>
</a>
</button>
</footer>
);
};

0 comments on commit 1ab43ef

Please sign in to comment.