Skip to content

Commit

Permalink
fix logout bug (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
onurdilsiz authored Oct 22, 2024
1 parent e313774 commit 2987508
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions web/src/components/RecommendationItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Spotify } from "react-spotify-embed";
import { Link } from "react-router-dom";

const RecommendationItem: React.FC<{ rec: { type: string; spotifyId: string } }> = ({ rec }) => {
return (
Expand All @@ -11,12 +12,12 @@ const RecommendationItem: React.FC<{ rec: { type: string; spotifyId: string } }>
/>

{/* Invisible clickable overlay */}
<a
href={`/${rec.type}/${rec.spotifyId}`}
rel="noopener noreferrer"
className="absolute inset-0 z-10"
aria-label="Override Spotify link"
></a>
<Link
to={`/${rec.type}/${rec.spotifyId}`}
className="absolute inset-0 z-10"
aria-label="Override Spotify link"
></Link>

</div>
);
};
Expand Down

0 comments on commit 2987508

Please sign in to comment.