Skip to content

Commit

Permalink
Update LogoutBtn.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Mich47 committed May 4, 2023
1 parent 6236a88 commit 300be36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/MainLayout/LogoutBtn/LogoutBtn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useDispatch } from 'react-redux';

import { authLogout } from 'redux/auth/auth.operations';
import * as STC from './LogoutBtn.styled';
import Icons from '../../../images/sprite.svg';
import Icons from 'images/sprite.svg';

export const LogoutBtn = () => {
const dispatch = useDispatch();
Expand All @@ -11,8 +11,6 @@ export const LogoutBtn = () => {
<STC.Btn
onClick={() => {
dispatch(authLogout());
const body = document.querySelector('body');
body.classList.remove('dark-theme');
}}
>
<STC.Txt>Log out</STC.Txt>
Expand Down

0 comments on commit 300be36

Please sign in to comment.