Skip to content

Commit

Permalink
Undo logo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmw committed Oct 4, 2024
1 parent c94333c commit b46e8f8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions client/src/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import { Link } from "@tanstack/react-router";
import logo from "@/img/logo.png";

interface LogoProps {
onClick?: () => void; // Optional onClick prop
}

const Logo: React.FC<LogoProps> = ({ onClick }) => {
const Logo = () => {
return (
<Link to="/">
<div
className="mx-2 my-auto h-full cursor-pointer" // Add cursor-pointer for better UX
onClick={onClick} // Call the onClick function if provided
>
<div className="mx-2 my-auto h-full">
<img src={logo} alt="logo" className="w-16" />
</div>
</Link>
Expand Down

0 comments on commit b46e8f8

Please sign in to comment.