Skip to content

Commit eb98e87

Browse files
authored
Update FormattedText.jsx
1 parent 3f5b955 commit eb98e87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/components/FormattedText.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import VideoComment from './VideoComment';
77
import FragmentComment from './FragmentComment';
88

99
function FormattedText({children, setHighlightedText, selectable, setSelectedText}) {
10-
10+
1111
const handleMouseUp = () => {
1212
if (selectable) {
1313
let text = window.getSelection().toString();
@@ -30,8 +30,8 @@ function FormattedText({children, setHighlightedText, selectable, setSelectedTex
3030
remarkPlugins={[remarkGfm, remarkDefinitionList, remarkUnwrapImages]}
3131
components={{
3232
img: (x) => embedVideo(x) || CroppedImage(x),
33-
p: (x) => VideoComment(x)
34-
|| FragmentComment({...x, setHighlightedText})
33+
p: (x) => VideoComment(x)
34+
|| FragmentComment({...x, setHighlightedText})
3535
|| <p onMouseUp={handleMouseUp}>{x.children}</p>,
3636
a: renderLinkOrVideo
3737
}}

0 commit comments

Comments
 (0)