File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ /node_modules
5
+ /.pnp
6
+ .pnp.js
7
+
8
+ # testing
9
+ /coverage
10
+
11
+ # production
12
+ /build
13
+
14
+ # misc
15
+ .DS_Store
16
+ .env.local
17
+ .env.development.local
18
+ .env.test.local
19
+ .env.production.local
20
+
21
+ npm-debug.log *
22
+ yarn-debug.log *
23
+ yarn-error.log *
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-nlp-annotate" ,
3
- "version" : " 0.3.5 " ,
3
+ "version" : " 0.3.7 " ,
4
4
"homepage" : " https://universaldatatool.github.io/react-nlp-annotate/" ,
5
5
"main" : " ./dist/lib.js" ,
6
6
"dependencies" : {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default ({
22
22
name : "Next" ,
23
23
onClick : onNext
24
24
} ,
25
- { name : "Done " }
25
+ { name : "Save " }
26
26
] . filter ( Boolean ) ,
27
27
[ currentSampleIndex , numberOfSamples ]
28
28
)
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export default function NLPAnnotator(props: NLPAnnotatorProps) {
37
37
}
38
38
39
39
useEffect ( ( ) => {
40
+ if ( ! props . hotkeysEnabled ) return
40
41
const eventFunc = e => {
41
42
if ( e . key === "Enter" ) {
42
43
if ( props . onFinish ) props . onFinish ( output )
@@ -67,7 +68,6 @@ export default function NLPAnnotator(props: NLPAnnotatorProps) {
67
68
68
69
const onFinish = useEventCallback ( ( ) => {
69
70
if ( ! isPassingValidation ) return
70
- console . log ( "onFinish" , output )
71
71
props . onFinish ( output )
72
72
} )
73
73
You can’t perform that action at this time.
0 commit comments