Skip to content

Commit

Permalink
Fixed deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Nov 11, 2024
1 parent 1400ee5 commit 9651a51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/text-annotator-react/test/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC, useCallback, useEffect } from 'react';
import { AnnotationBody, Annotorious, useAnnotationStore, useAnnotator } from '@annotorious/react';
import { TextAnnotationPopupContentProps, TextAnnotator, TextAnnotatorPopup } from '../src';
import { TextAnnotationPopup, TextAnnotationPopupContentProps, TextAnnotator } from '../src';
import { W3CTextFormat, type TextAnnotation, type TextAnnotator as RecogitoTextAnnotator } from '@recogito/text-annotator';

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

return (
<Annotorious>
<TextAnnotator adapter={w3cAdapter}>
<TextAnnotator
adapter={w3cAdapter}>
<p>
Tell me, O muse, of that ingenious hero who travelled far and wide
after he had sacked the famous town of Troy. Many cities did he
Expand Down Expand Up @@ -189,7 +190,7 @@ export const App: FC = () => {
</p>
</TextAnnotator>

<TextAnnotatorPopup
<TextAnnotationPopup
arrow
arrowProps={{
fill: '#000000'
Expand Down

0 comments on commit 9651a51

Please sign in to comment.