Skip to content

Commit 3f13c62

Browse files
committed
ack comments
1 parent e64d08d commit 3f13c62

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

apps/docs/app/api/og/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function loadGoogleFont(font: string, weights: string, text: string): Prom
3434
}
3535

3636
/**
37-
* Sim logo with icon and "Sim" text for OG image
37+
* Sim logo with icon and "Sim" text for OG image.
3838
*/
3939
function SimLogoFull() {
4040
return (

apps/docs/components/ui/action-media.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { useState } from 'react'
4-
import { getAssetUrl } from '@/lib/utils'
4+
import { cn, getAssetUrl } from '@/lib/utils'
55
import { Lightbox } from './lightbox'
66

77
interface ActionImageProps {
@@ -31,9 +31,10 @@ export function ActionImage({ src, alt, enableLightbox = true }: ActionImageProp
3131
src={src}
3232
alt={alt}
3333
onClick={handleClick}
34-
className={`inline-block w-full max-w-[200px] rounded border border-neutral-200 dark:border-neutral-700 ${
35-
enableLightbox ? 'cursor-pointer transition-opacity hover:opacity-90' : ''
36-
}`}
34+
className={cn(
35+
'inline-block w-full max-w-[200px] rounded border border-neutral-200 dark:border-neutral-700',
36+
enableLightbox && 'cursor-pointer transition-opacity hover:opacity-90'
37+
)}
3738
/>
3839
{enableLightbox && (
3940
<Lightbox
@@ -67,9 +68,10 @@ export function ActionVideo({ src, alt, enableLightbox = true }: ActionVideoProp
6768
muted
6869
playsInline
6970
onClick={handleClick}
70-
className={`inline-block w-full max-w-[200px] rounded border border-neutral-200 dark:border-neutral-700 ${
71-
enableLightbox ? 'cursor-pointer transition-opacity hover:opacity-90' : ''
72-
}`}
71+
className={cn(
72+
'inline-block w-full max-w-[200px] rounded border border-neutral-200 dark:border-neutral-700',
73+
enableLightbox && 'cursor-pointer transition-opacity hover:opacity-90'
74+
)}
7375
/>
7476
{enableLightbox && (
7577
<Lightbox

0 commit comments

Comments
 (0)