Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit 8a2d26f

Browse files
authored
Remove custom abcjs types (#1024)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
1 parent 47f5e76 commit 8a2d26f

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

src/components/markdown-renderer/replace-components/abc/abc-frame.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ export const AbcFrame: React.FC<AbcFrameProps> = ({ code }) => {
1919
return
2020
}
2121
const actualContainer = container.current
22-
import(/* webpackChunkName: "abc.js" */ 'abcjs').then((imp) => {
23-
imp.renderAbc(actualContainer, code)
24-
})
25-
.catch(() => {
26-
console.error('error while loading abcjs')
27-
})
22+
import(/* webpackChunkName: "abc.js" */ 'abcjs')
23+
.then((imp) => {
24+
imp.renderAbc(actualContainer, code, {})
25+
})
26+
.catch(() => {
27+
console.error('error while loading abcjs')
28+
})
2829
}, [code])
2930

3031
return <div ref={ container } className={ 'abcjs-score bg-white text-black text-center overflow-x-auto' }/>

src/external-types/abcjs/abcjs.d.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)