Skip to content

Commit

Permalink
Merge pull request #623 from razzeee/key-addon
Browse files Browse the repository at this point in the history
Add more keys to addon page
  • Loading branch information
razzeee authored Oct 14, 2023
2 parents f55a236 + b37a9ae commit 65c1dab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/AddonLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default function AddonLayout({
(author: { name: string; slug: string }, index: any) => {
return (
<ItemWithComma
key={author.name}
description={author.name}
url={linkroot + "author/" + author.slug}
index={index}
Expand All @@ -144,6 +145,7 @@ export default function AddonLayout({
(category: { name: string; slug: string }, index: any) => {
return (
<ItemWithComma
key={category.name}
description={category.name}
url={linkroot + "category/" + category.slug}
index={index}
Expand Down Expand Up @@ -176,7 +178,7 @@ export default function AddonLayout({
<div className="mx-2 mt-4 lg:mx-8 xl:mx-16 rounded-lg bg-gray-50 shadow overflow-hidden">
<div className="border-t border-gray-200">
<dl>
{details.map((item, index) => (
{details.map(item => (
<>
{item.datatype === "link" ? (
<div key={item.title} className={item.className}>
Expand All @@ -196,8 +198,8 @@ export default function AddonLayout({
{item.title}
</dt>
<dd className="mt-0 col-span-1 md:col-span-2 text-sm">
{item.data.map((platform, index) => (
<div className="flex space-x-2 mb-1">
{item.data.map(platform => (
<div className="flex space-x-2 mb-1" key={platform.platform}>
<a href={platform.path}>
<ArrowDownTrayIcon className="h-5 w-5 text-kodi" />
</a>
Expand Down

0 comments on commit 65c1dab

Please sign in to comment.