Skip to content

Commit ab6ffa6

Browse files
fix: import lazy MuxPlayer to avoid schema extraction errors (#447)
Co-authored-by: Robbie <[email protected]>
1 parent 95c2582 commit ab6ffa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/VideoPlayer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import MuxPlayer, {type MuxPlayerProps, type MuxPlayerRefAttributes} from '@mux/mux-player-react'
1+
import {type MuxPlayerProps, type MuxPlayerRefAttributes} from '@mux/mux-player-react'
2+
import MuxPlayer from '@mux/mux-player-react/lazy'
23
import {ErrorOutlineIcon} from '@sanity/icons'
34
import {Card, Text} from '@sanity/ui'
45
import {type PropsWithChildren, useMemo, useRef} from 'react'

0 commit comments

Comments
 (0)