Skip to content

Commit

Permalink
Merge pull request #14 from 001elijah/header
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
001elijah authored Jun 20, 2023
2 parents f647c18 + 7f8dc69 commit d28ce3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/assets/icons/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import s from './Header.module.scss';
import icons from '../../assets/icons/sprite.svg';

export const Header = () => {
const theme = useSelector(state => state.auth?.user?.theme) || 'colorful';
const theme = useSelector(state => state.auth?.user?.theme);

return (
<header className={clsx(s.header, s[theme])}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SharedLayout/SharedLayout.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useSelector } from 'react-redux';

import { Header } from 'components/Header/Header';
// import { Header } from 'components/Header/Header';
import { Loader } from 'components/Loader/Loader';

export const SharedLayout = () => {
Expand All @@ -12,7 +12,7 @@ export const SharedLayout = () => {
{isLoading && <Loader />}

{/* {token && <Header />} */}
<Header/>
{/* <Header/> */}
</>
);
};
2 changes: 1 addition & 1 deletion src/components/UserInfo/UserInfo.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
font-size: 14px;
line-height: 1.5px;
letter-spacing: -0.02em;
color: $white-text-color;
color: $black-text-color;

&.light {
color: $black-text-color;
Expand Down

0 comments on commit d28ce3d

Please sign in to comment.