Skip to content

Commit

Permalink
fix(plugin-video): use staticStrings in renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
elbotho committed Oct 8, 2024
1 parent a58daae commit cce4f9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/plugins/video/static.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useEditStrings } from '@editor/i18n/edit-strings-provider'
import { useStaticStrings } from '@editor/i18n/static-strings-provider'
import { parseVideoUrl, VideoRenderer } from '@editor/plugins/video/renderer'
import { EditorVideoDocument } from '@editor/types/editor-plugins'

export function VideoStaticRenderer({ state: { src } }: EditorVideoDocument) {
const { lang } = useEditStrings()
const { lang } = useStaticStrings()

const [iframeSrc, type] = parseVideoUrl(src, lang)
if (!type || !iframeSrc) return null
Expand Down

0 comments on commit cce4f9d

Please sign in to comment.