Skip to content

Commit

Permalink
fix: demo type
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Nov 16, 2023
1 parent 46b799c commit 8b60a24
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/ui/link-card/index.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import type { DocumentComponent } from 'storybook/typings'

import { LinkCardSource } from './enums'
import { LinkCard } from './LinkCard2'

export const LinkCardDemo1: DocumentComponent = () => {
return <LinkCard id="notes/145" source="mx-space" />
return <LinkCard id="notes/145" source={LinkCardSource.MixSpace} />
}

LinkCardDemo1.meta = {
description: 'Show Mix Space Note LinkCard',
title: 'LinkCard - Mix Space Note',
}
export const LinkCardDemo2: DocumentComponent = () => {
return <LinkCard id="innei/innei" source="gh" />
return <LinkCard id="innei/innei" source={LinkCardSource.GHRepo} />
}

LinkCardDemo2.meta = {
Expand All @@ -20,7 +21,7 @@ LinkCardDemo2.meta = {
}

export const LinkCardDemo3: DocumentComponent = () => {
return <LinkCard id="notes/1451" source="mx-space" />
return <LinkCard id="notes/1451" source={LinkCardSource.MixSpace} />
}

LinkCardDemo3.meta = {
Expand All @@ -29,7 +30,7 @@ LinkCardDemo3.meta = {
}

export const LinkCardDemo4: DocumentComponent = () => {
return <LinkCard id="innei/shiro/132" source="gh-pr" />
return <LinkCard id="innei/shiro/132" source={LinkCardSource.GHPr} />
}

LinkCardDemo4.meta = {
Expand All @@ -41,7 +42,7 @@ export const LinkCardDemo5: DocumentComponent = () => {
return (
<LinkCard
id="innei/shiro/commit/0bf51cd8cf8457a2666906dea4a333081fc2a2b8"
source="gh-commit"
source={LinkCardSource.GHCommit}
/>
)
}
Expand Down

1 comment on commit 8b60a24

@vercel
Copy link

@vercel vercel bot commented on 8b60a24 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
springtide.vercel.app
shiro-innei.vercel.app
innei.in

Please sign in to comment.