Skip to content

Commit 7d6b4ee

Browse files
TheodoreSpeaksTheodore Li
authored andcommitted
fix(blog): Fix blog not loading (#3895)
* Fix blog not loading * Use emcn icon --------- Co-authored-by: Theodore Li <theo@sim.ai>
1 parent 66c8f0c commit 7d6b4ee

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

apps/sim/app/(landing)/blog/[slug]/share-button.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
DropdownMenuItem,
99
DropdownMenuTrigger,
1010
} from '@/components/emcn'
11+
import { Copy } from '@/components/emcn/icons'
12+
import { LinkedInIcon, xIcon as XIcon } from '@/components/icons'
1113

1214
interface ShareButtonProps {
1315
url: string
@@ -50,10 +52,17 @@ export function ShareButton({ url, title }: ShareButtonProps) {
5052
</DropdownMenuTrigger>
5153
<DropdownMenuContent align='end'>
5254
<DropdownMenuItem onSelect={handleCopyLink}>
55+
<Copy className='h-4 w-4' />
5356
{copied ? 'Copied!' : 'Copy link'}
5457
</DropdownMenuItem>
55-
<DropdownMenuItem onSelect={handleShareTwitter}>Share on X</DropdownMenuItem>
56-
<DropdownMenuItem onSelect={handleShareLinkedIn}>Share on LinkedIn</DropdownMenuItem>
58+
<DropdownMenuItem onSelect={handleShareTwitter}>
59+
<XIcon className='h-4 w-4' />
60+
Share on X
61+
</DropdownMenuItem>
62+
<DropdownMenuItem onSelect={handleShareLinkedIn}>
63+
<LinkedInIcon className='h-4 w-4' />
64+
Share on LinkedIn
65+
</DropdownMenuItem>
5766
</DropdownMenuContent>
5867
</DropdownMenu>
5968
)

apps/sim/lib/blog/code.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { Code } from '@/components/emcn'
24

35
interface CodeBlockProps {

0 commit comments

Comments
 (0)