Skip to content

Commit 9651a51

Browse files
committed
Fixed deprecation
1 parent 1400ee5 commit 9651a51

File tree

1 file changed

+4
-3
lines changed
  • packages/text-annotator-react/test

1 file changed

+4
-3
lines changed

packages/text-annotator-react/test/App.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { FC, useCallback, useEffect } from 'react';
22
import { AnnotationBody, Annotorious, useAnnotationStore, useAnnotator } from '@annotorious/react';
3-
import { TextAnnotationPopupContentProps, TextAnnotator, TextAnnotatorPopup } from '../src';
3+
import { TextAnnotationPopup, TextAnnotationPopupContentProps, TextAnnotator } from '../src';
44
import { W3CTextFormat, type TextAnnotation, type TextAnnotator as RecogitoTextAnnotator } from '@recogito/text-annotator';
55

66
const TestPopup: FC<TextAnnotationPopupContentProps> = (props) => {
@@ -67,7 +67,8 @@ export const App: FC = () => {
6767

6868
return (
6969
<Annotorious>
70-
<TextAnnotator adapter={w3cAdapter}>
70+
<TextAnnotator
71+
adapter={w3cAdapter}>
7172
<p>
7273
Tell me, O muse, of that ingenious hero who travelled far and wide
7374
after he had sacked the famous town of Troy. Many cities did he
@@ -189,7 +190,7 @@ export const App: FC = () => {
189190
</p>
190191
</TextAnnotator>
191192

192-
<TextAnnotatorPopup
193+
<TextAnnotationPopup
193194
arrow
194195
arrowProps={{
195196
fill: '#000000'

0 commit comments

Comments
 (0)