diff --git a/apps/addon-catalog/app/[...addonName]/page.tsx b/apps/addon-catalog/app/[...addonName]/page.tsx
index 0d3a2364..6f2a673f 100644
--- a/apps/addon-catalog/app/[...addonName]/page.tsx
+++ b/apps/addon-catalog/app/[...addonName]/page.tsx
@@ -8,6 +8,7 @@ import { Highlight } from '../../components/highlight';
import { type Database } from '../../types/database.types';
import { createMarkdownProcessor } from '../../lib/create-markdown-processor';
import { AddonSidebar } from '../../components/addon/addon-sidebar';
+import type { Author } from '../../types/types';
interface AddonDetailsProps {
params: {
@@ -48,7 +49,7 @@ export default async function AddonDetails({ params }: AddonDetailsProps) {
.select('*, author (*)')
.eq('addon', addon.id);
- const authors = addonAuthors ? addonAuthors.map((a) => a.author) : [];
+ const authors = addonAuthors?.map((a) => a.author) as unknown as Author[];
const baseLink = `${addon.repository_url ?? addon.npm_url ?? ''}/`;
const processor = createMarkdownProcessor(baseLink);
@@ -134,7 +135,7 @@ export default async function AddonDetails({ params }: AddonDetailsProps) {
) : null}
-
+
);
diff --git a/apps/addon-catalog/components/addon/addon-sidebar.tsx b/apps/addon-catalog/components/addon/addon-sidebar.tsx
index b6c34b6b..d5d3aaa9 100644
--- a/apps/addon-catalog/components/addon/addon-sidebar.tsx
+++ b/apps/addon-catalog/components/addon/addon-sidebar.tsx
@@ -1,18 +1,18 @@
'use client';
-import { Pill } from '@repo/ui';
+// import { Pill } from '@repo/ui';
import { BookIcon, EditIcon } from '@storybook/icons';
import Image from 'next/image';
-import Link from 'next/link';
+// import Link from 'next/link';
import { useState } from 'react';
import { url } from 'gravatar';
-import type { Addon, Author } from '../../types/types';
+import type { Author } from '../../types/types';
export function AddonSidebar({
- addon,
+ // addon,
authors,
}: {
- addon: Addon;
+ // addon: Addon;
authors: Author[];
}) {
const [moreAuthorsVisible, setMoreAuthorsVisible] = useState(false);
diff --git a/apps/addon-catalog/types/types.ts b/apps/addon-catalog/types/types.ts
index 7ff4755a..18c5f1f4 100644
--- a/apps/addon-catalog/types/types.ts
+++ b/apps/addon-catalog/types/types.ts
@@ -2,3 +2,8 @@ import type { Database } from './database.types';
export type Addon = Database['public']['Tables']['addons']['Row'];
export type Author = Database['public']['Tables']['authors']['Row'];
+
+export type AddonAuthor = Database['public']['Tables']['addon_author']['Row'];
+// export interface AddonAuthorFull extends AddonAuthor {
+// author: Author;
+// }