This repository was archived by the owner on Jan 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
api-editor/gui/src/features Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ const AnnotationTag: React.FC<AnnotationTagProps> = function ({
327
327
const currentUserAction = useAppSelector ( selectCurrentUserAction ) ;
328
328
329
329
const reviewer = ( annotation . reviewers ?? [ ] ) [ 0 ] ;
330
- const reviewResult = annotation . reviewResult ?? ReviewResult . Correct ;
330
+ const reviewResult = annotation . reviewResult ;
331
331
const isReviewed = reviewer !== undefined ;
332
332
333
333
const authors = annotation . authors ?? [ ] ;
@@ -389,7 +389,7 @@ const AnnotationTag: React.FC<AnnotationTagProps> = function ({
389
389
) }
390
390
</ Button >
391
391
</ Tooltip >
392
- { reviewResult === ReviewResult . Correct && (
392
+ { ( reviewResult === ReviewResult . Correct || ( isReviewed && ! reviewResult ) ) && (
393
393
< Tooltip label = { `Marked as correct by ${ reviewer } . Click to undo.` } >
394
394
< Button
395
395
size = "sm"
Original file line number Diff line number Diff line change @@ -84,16 +84,16 @@ const InvalidFilterToken: React.FC<InvalidFilterTokenProps> = function ({ token
84
84
return (
85
85
< ListItem >
86
86
< ChakraText >
87
- < ChakraText display = "inline " fontWeight = "bold" >
87
+ < Box as = "span " fontWeight = "bold" >
88
88
{ token }
89
- </ ChakraText >
89
+ </ Box >
90
90
{ closestDistance <= 3 && (
91
91
< >
92
92
{ '. ' }
93
93
Did you mean{ ' ' }
94
- < ChakraText display = "inline " textDecoration = "underline" cursor = "pointer" onClick = { onClick } >
94
+ < Box as = "span " textDecoration = "underline" cursor = "pointer" onClick = { onClick } >
95
95
{ closestAlternative }
96
- </ ChakraText >
96
+ </ Box >
97
97
?
98
98
</ >
99
99
) }
You can’t perform that action at this time.
0 commit comments