Skip to content

Commit

Permalink
refactor: remove renderers init from Revision comp
Browse files Browse the repository at this point in the history
  • Loading branch information
hejtful committed Jan 8, 2025
1 parent f9b0124 commit d63e3bf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/web/src/components/author/revision/revision.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { editorRenderers } from '@editor/plugin/helpers/editor-renderer'
import { useState, useEffect } from 'react'

import { DisplayModes } from './display-modes'
@@ -12,7 +11,6 @@ import { UserTools } from '@/components/user-tools/user-tools'
import { useInstanceData } from '@/contexts/instance-context'
import { type RevisionData } from '@/data-types'
import { removeHash } from '@/helper/remove-hash'
import { createRenderers } from '@/serlo-editor-integration/create-renderers'

export interface RevisionProps {
data: RevisionData
@@ -26,7 +24,6 @@ export function Revision({ data }: RevisionProps) {
const [displayMode, setDisplayMode] = useState<DisplayModes>(
DisplayModes.This
)
editorRenderers.init(createRenderers())

// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {

0 comments on commit d63e3bf

Please sign in to comment.