Skip to content

Commit

Permalink
fix components on rss
Browse files Browse the repository at this point in the history
  • Loading branch information
fohte committed May 22, 2024
1 parent e0b214c commit 34de69a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/mdx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,15 @@ export const rssComponents: MDXComponents = {
// FIXME: fix mock of Tweet and YouTube
Tweet: ({}: React.ComponentProps<typeof Tweet>) => <div>Tweet</div>,
YouTube: ({}: React.ComponentProps<typeof YouTube>) => <div>YouTube</div>,

// FIxME: fix mock of SpeakerDeck, the id in props is not a url to view the slide page
SpeakerDeck: ({}: React.ComponentProps<typeof SpeakerDeck>) => (
<p>SpeakerDeck</p>
),

Mastodon: ({ url }: React.ComponentProps<typeof Mastodon>) => (
<p>
Mastodon: <a>{url}</a>
</p>
),
}

0 comments on commit 34de69a

Please sign in to comment.