Skip to content

Commit

Permalink
Merge pull request #85 from MargoMarm/fix/Header
Browse files Browse the repository at this point in the history
fix header
  • Loading branch information
MargoMarm committed Sep 25, 2023
2 parents c36b04c + 8a97b40 commit dc71dfc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/MobMenu/MobMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
ContainerLink,
Span,
Svg,
SvgUser,
Link,
Overlay,
} from './MobMenu.styled';
import { UserAvatar } from '../headersComp/UserNav/UserNav.styled';
Expand Down Expand Up @@ -46,11 +46,11 @@ const MobMenu = () => {
return (
<>
<MenuBars to="#">
<ButtonMenu type="button">
<Link to={'/profile'}>
<Svg>
<use href={sprite + `#settings`}></use>
</Svg>
</ButtonMenu>
</Link>
<ButtonMenu type="button">
{avatarURL ? (
<UserAvatar>
Expand Down
11 changes: 10 additions & 1 deletion src/components/MobMenu/MobMenu.styled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import styled from '@emotion/styled';
import { mq, colors, button, svgUser } from '../../utils';
import { NavLink } from 'react-router-dom';

export const Link = styled(NavLink)`
display: flex;
align-items: center;
${mq.desktop} {
display: none;
}
`;

export const MenuBars = styled.div`
display: flex;
Expand Down Expand Up @@ -74,7 +83,7 @@ export const NavbarToggle = styled.div`
`;

export const ContainerMenu = styled.div`
position: relative;
position: relative;
width: 100%;
height: 100vh;
Expand Down

0 comments on commit dc71dfc

Please sign in to comment.