Skip to content

Commit

Permalink
refactor(Header): polish code up
Browse files Browse the repository at this point in the history
issue #77
  • Loading branch information
sabertazimi committed Jul 15, 2021
1 parent 1819a83 commit 6448b2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/DesktopNav.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Link } from 'gatsby';
import { Menu, Avatar, Image } from 'antd';
import { Menu, Image } from 'antd';
import { Colors, Routes } from '@config';
import PostsSearchBar from '@components/PostsSearchBar';
import logo from 'images/logo-full.png';
Expand Down
6 changes: 2 additions & 4 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Visibility, Segment } from 'semantic-ui-react';
import { Visibility } from 'semantic-ui-react';
import { useResponsive } from '@hooks';
import { BreakPoints } from '@config';
import MobileNav from './MobileNav';
Expand All @@ -18,9 +18,7 @@ const Header = () => {
onBottomPassedReverse={hideFixedNav}
once={false}
>
<Segment style={{ padding: 0 }} textAlign="center" vertical>
{isMobile ? <MobileNav /> : <DesktopNav fixed={navFixed} />}
</Segment>
{isMobile ? <MobileNav /> : <DesktopNav fixed={navFixed} />}
</Visibility>
);
};
Expand Down

0 comments on commit 6448b2c

Please sign in to comment.