Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix runtime errors by removing as prop from Link #200

Merged
merged 16 commits into from
Jan 8, 2025
3 changes: 1 addition & 2 deletions components/cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const Cards = ({ items, basePath }: ICard) => {
key={`singleCard-${singleCard.slug}`}
>
<Link
href={`/${basePath}/[id]`}
as={`/${basePath}/${singleCard.slug}`}
href={`/${basePath}/${singleCard.slug}`}
className="no-underline"
>
<div className="overflow-hidden max-h-40 mb-2">
Expand Down
3 changes: 1 addition & 2 deletions components/notes/note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import type { IContent } from '../../utils/content';
export function Note({ date, title, slug, basePath }: IContent) {
return (
<Link
href={`/${basePath}/[id]`}
as={`/${basePath}/${slug}`}
href={`/${basePath}/${slug}`}
className="cursor-pointer no-underline hover:underline"
>
<article className="flex flex-col mb-4 sm:mb-0 sm:flex-row sm:items-center">
Expand Down
Loading