Skip to content

Commit

Permalink
fix: logo missing when refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
kyziq committed Jan 10, 2024
1 parent faf3006 commit 8fbe027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
File renamed without changes
7 changes: 4 additions & 3 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ import {
import { Link, useNavigate } from 'react-router-dom';
import { FaSearch } from 'react-icons/fa';
import { allLists } from '../data/list';
import logo from '../assets/logo.png';

const SearchAutocomplete = ({ allLists }) => {
const navigate = useNavigate();

const handleSelectionChange = (id) => {
if (id) {
navigate(`/artistry-hub/art/${id}`);
navigate(`/art/${id}`);
}
};
return (
Expand Down Expand Up @@ -127,8 +128,8 @@ const NavbarComponent = () => {
const sortedAllList = allItems.sort((a, b) => a.name.localeCompare(b.name));
return (
<Navbar maxWidth={'full'} isBordered shouldHideOnScroll>
<Link to="/artistry-hub/" reloadDocument>
<Image src="./logo.png" alt="Logo" width={40} height={40} isZoomed />
<Link to="/" reloadDocument>
<Image src={logo} alt="Logo" width={40} height={40} isZoomed />
</Link>
<NavbarContent justify="start">
<NavbarBrand>
Expand Down

0 comments on commit 8fbe027

Please sign in to comment.