Skip to content

Commit

Permalink
feat: add logo to home
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 9, 2022
1 parent d24ae65 commit ac19b84
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ export function Navbar(props: NavBarProps) {
}}
/>
)}
{props.logo && <img src={logo} alt="Logo" className={styles.logo} />}
{props.logo && (
<img
src={logo}
alt="Logo"
className={styles.logo}
onClick={() => {
navigate('/');
}}
/>
)}
<ul className={styles.navbarNav}>{props.children}</ul>
</nav>
</>
Expand Down

0 comments on commit ac19b84

Please sign in to comment.