Skip to content

Commit

Permalink
change Link to a because of error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncukondo committed Feb 28, 2024
1 parent bf90238 commit de78247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/pages/movies/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,10 @@ const WholeMovieCardList = ({ data }: { data: DataList }) => {
className="rounded-box border-base-300 bg-base-100 border-[1px] p-6"
>
<h3 className="text-base-content my-10 text-2xl" id={dataList.key}>
<Link
className="link link-hover"
href={`/movies/list/${encodeURIComponent(dataList.key)}`}
>
<a className="link link-hover" href={`/movies/list/${dataList.key}`}>
{" "}
{dataList.key}
</Link>
</a>
</h3>
<CategoryInfo data={data} category={dataList.key} subCategory="" />
{dataList.data.map(subData => (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/movies/list/[...paths].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const getPaths = async (): Promise<
const data = await loadMovieData(locale as Locale);
return extractCategories(data.filter(isMovieData), ["category", "sub-category"]).map(
paths => ({
params: { paths },
params: { paths: paths },
locale,
}),
);
Expand Down

0 comments on commit de78247

Please sign in to comment.