Skip to content

Commit f62c62e

Browse files
committed
refactor: Simplify Header component by removing back navigation for home
1 parent f9bf089 commit f62c62e

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/components/Layout/Header.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { CgTab } from 'react-icons/cg'
44
import { FaUser } from 'react-icons/fa'
55
import { IoMdSunny } from 'react-icons/io'
66
import { MdDoDisturbOff } from 'react-icons/md'
7-
import { RxArrowLeft } from 'react-icons/rx'
87
import { Link, useLocation, useNavigate } from 'react-router-dom'
98
import { ReactComponent as HackertabLogo } from 'src/assets/logo.svg'
109
import { SearchBar } from 'src/components/Elements/SearchBar'
@@ -111,15 +110,7 @@ export const Header = () => {
111110
)}
112111
</CircleButton>
113112
</div>
114-
{location.pathname === '/' ? (
115-
<UserTags />
116-
) : (
117-
<div className="backToHome">
118-
<Link to="/">
119-
<RxArrowLeft size={20} /> Back
120-
</Link>
121-
</div>
122-
)}
113+
{location.pathname === '/' && <UserTags />}
123114
</header>
124115
</>
125116
)

0 commit comments

Comments
 (0)