Skip to content

Commit

Permalink
fix: video-preview component syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
charli117 committed Dec 9, 2024
1 parent 11800bd commit 44019a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web/app/components/base/file-uploader/video-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FC } from 'react'
import { createPortal } from 'react-dom'
import { RiCloseLine } from '@remixicon/react'
import React from 'react'
import {useKeyboardShortcuts} from "@/hooks/use-keyboard-short"
import { useKeyboardShortcuts } from '@/hooks/use-keyboard-short'

type VideoPreviewProps = {
url: string
Expand All @@ -15,7 +15,7 @@ const VideoPreview: FC<VideoPreviewProps> = ({
onCancel,
}) => {
useKeyboardShortcuts({
esc: onCancel
esc: onCancel,
})

return createPortal(
Expand All @@ -40,8 +40,7 @@ const VideoPreview: FC<VideoPreviewProps> = ({
<RiCloseLine className='w-4 h-4 text-gray-500'/>
</div>
</div>
,
document.body,
, document.body,
)
}

Expand Down

0 comments on commit 44019a5

Please sign in to comment.