diff options
| author | Fushihara <1039534+fushihara@users.noreply.github.com> | 2024-09-23 23:07:57 +0900 |
|---|---|---|
| committer | Fushihara <1039534+fushihara@users.noreply.github.com> | 2024-09-23 23:07:57 +0900 |
| commit | ef51132201852200128412a773b1067570fdd68b (patch) | |
| tree | b8726e9bd808c9fd7b20823fcbc86ed582ace882 /src/app/article/_components | |
| parent | 26ca4614ef68fd9ab8179791f2bceabc53073a60 (diff) | |
URLのカテゴリを消し忘れがあったので修正
Diffstat (limited to 'src/app/article/_components')
| -rw-r--r-- | src/app/article/_components/articleListElement.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/app/article/_components/articleListElement.tsx b/src/app/article/_components/articleListElement.tsx index 21ee947..0fe3d70 100644 --- a/src/app/article/_components/articleListElement.tsx +++ b/src/app/article/_components/articleListElement.tsx @@ -60,12 +60,7 @@ export function ArticleListElement(displayData: DisplayData[]) { if (d.breadLinks.indexOf(bread) != 0) { breadChildElement.push(<span>></span>); } - // 1つ目のパンくずリストはカテゴリだけど、2つ目以降のパンくずリストはタグと同じ - if (d.breadLinks.indexOf(bread) == 0) { - breadChildElement.push(<Link href={`/article/category/${bread}`} className="transition duration-300 ease-in-out hover:text-gray-900" key={`bread-${bread}`}>{bread}</Link>); - } else { - breadChildElement.push(<Link href={`/article/tag/${bread}`} className="transition duration-300 ease-in-out hover:text-gray-900" key={`bread-${bread}`}>{bread}</Link>); - } + breadChildElement.push(<Link href={`/article/tag/${bread}`} className="transition duration-300 ease-in-out hover:text-gray-900" key={`bread-${bread}`}>{bread}</Link>); } breadElement = ( <span className="flex gap-0.5"> @@ -99,7 +94,7 @@ export function ArticleListElement(displayData: DisplayData[]) { <tr className="bg-white border-b transition duration-300 ease-in-out hover:bg-gray-100 text-sm text-gray-900 font-light"> <td className="px-1 py-1">{d.articleId}</td> <td className="px-1 py-1"> - <Link href={`/article/category/${topCategory}`} className="transition duration-300 ease-in-out hover:text-gray-900 original-href" >{topCategory}</Link> + <Link href={`/article/tag/${topCategory}`} className="transition duration-300 ease-in-out hover:text-gray-900 original-href" >{topCategory}</Link> </td> <td className="px-1 py-1"> <div>{d.title}</div> |
